Hey I have to create resume file upload option.
I am using ,
1 UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(request);
2 String submissionFileName = uploadRequest.getFileName("file");
3 File submissionFile = uploadRequest.getFile("file");
Here file gets uploaded in /tomcat/temp directory.
I have following problems that I am facing:
1)All files are not supported - I tried .txt not supported,though pdf, doc, xml is supported.
2)When I redeploy portlet on server my files disapper from temp.
3)How can I specify path to upload my files other than default temp folder, i.e I want to store in document & media.
4)My file name changes when stored in temp folder.
Please sign in to flag this as inappropriate.