I have a web application developed through the Surlet and JSP, we will host it shortly
But, now we have a problem. We have a form where users can upload the file, such as images and PDFs, now we are not sure how we should save these files to the server. I have seen lots of stackoverflow answers which tell the user to use the path like "C: / upload / .." but this is a real product, so it is not working.
I contacted the hosting company about this matter and everyone has said that they will give the FTP logging details when the system is purchased, no words about uploading the file.
I also thought about uploading Amazon S3, but for us to upload your content, create "Dynamically" folders for each user and subfolder, so that's about S3 Not sure Besides, I believe S3 will wander my wallet.
Any advice about upload placements in Tomcat or optional will really be appreciated.
But, now we have a problem. We have a form where users can upload the file, such as images and PDFs, now we are not sure how we should save these files to the server.
If you are talking about long-term storage then there is no right answer here. All you have to do is find a place on that server where your Tomcat user has permission to write and configure the app to write there.
I have contacted the hosting company about this matter and they all said that when I bought the system, any word about uploading the file will give the FTP logging details.
Once you receive the FTP details, you should be able to connect to the server and look at the file system. This will probably allow you to see the path where your application will be deployed. From there, it's a matter of choosing a place where you want to save the file.
I am not familiar with that hosting provider, so I can not really do more.
I also thought about uploading Amazon S3, but we would have to create "dynamic" folders for each user and subfolder for our uploaded content, Not so sure about Also, I believe S3 will remove my wallet.
It may also be a good option depending on your needs. Price is definitely something to evaluate demand and bandwidth on your hosting environment If you have excessive demand on these resources, then putting them on AWS will take your server load and will not take the bandwidth allocation from your hosting provider .
You can also store your uploads in a database. I am not personally a fan of this, but some people do it and I have heard that it works fine for them.
No comments:
Post a Comment