Where should i save my images that user uploads? java web application

Posted by Nitesh Panchal on Stack Overflow See other posts from Stack Overflow or by Nitesh Panchal
Published on 2010-05-07T02:45:02Z Indexed on 2010/05/07 2:48 UTC
Read the original article Hit count: 225

Filed under:
|
|

Hello, I am saving the image at this location :-

private static String photoGalleryPath = "/Common/PhotoGallery/";

In PhotoGallery. I create userid wise folders and save images. Everything works fine. But when i clean and build my project. The whole folder of PhotoGallery gets deleted. This looks very funny to me :). Why does it delete my whole folder everytime? And what more should i do to tell the extra smart Glassfish to not to delete my folders?

© Stack Overflow or respective owner

Related posts about java

Related posts about web