shobhanb Posted October 23, 2017 Posted October 23, 2017 Hi Team, I have created an eclipse project where I upload images in a folder which is outside my eclipse folder. In my local tomcat server I have achieved it by adding context entry in server.xml. Could you please let me know how can I do the same in Heliohost environment. RegardsShobhan Bharill
Krydos Posted October 24, 2017 Posted October 24, 2017 Why do you want to host images outside of public_html? What would that accomplish?
shobhanb Posted October 24, 2017 Author Posted October 24, 2017 I want to store user uploaded images to a folder and access them using the url like https://domainname/images/testimage.jpg.I am new to this thing and this is the only way I know, please let me know if there is any other way to do it on your servers, will be very helpful.
Krydos Posted October 24, 2017 Posted October 24, 2017 I'm not sure anyone has done that before. If you're having permission errors it might mean that your directory isn't writable by the tomcat user. The .war runs as a different user from your account so you'll need to grant write permissions on the directory. Default directories are 755, and adding write permissions for group and other would make it 777.
shobhanb Posted October 24, 2017 Author Posted October 24, 2017 Is it possible to upload files to my public_html folder grammatically from the servlet which is running in my war? If it is possible, could you please help me the path of my public_html folder which my servlet can identify to upload files.
Krydos Posted October 24, 2017 Posted October 24, 2017 I'm not sure if it's possible, and no one has tried it before. Let us know what you try and whether it works.
shobhanb Posted October 25, 2017 Author Posted October 25, 2017 Could you please let me know the absolute path of my html public folder?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now