My problem is that the file test.jpg is in the same folder as the class. But I want to upload files from another folder.Here is test.jpg : ProjectFolder/WEB-INF/classes/package1/package2/But I want from that folder. : ProjectFolder/TempFolder/