Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where to store uploaded images - in the tomcat application or on the server?

Tags:

image

tomcat

What do you suggest for location of images that the user uploads to my application?

in my server application (like WebContent->images) or in system location?

like image 972
Dejell Avatar asked Dec 18 '25 18:12

Dejell


1 Answers

Store it outside the Tomcat installation. That makes updates of both Tomcat and your application a lot easier.

You could also think about storing the images as BLOB in a database.

like image 198
Olvagor Avatar answered Dec 20 '25 13:12

Olvagor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!