How to create Java .pptx file upload functionality?
<p>multiReq.getFilesystemName return null name in .pptx case but work well in all other extension.</p>

<pre><code>ResourceBundle res = ResourceBundle.getBundle("Application");
String servername = request.getRequestURI();
servername = servername.substring(0, servername.lastIndexOf("/"));
                if (servername.indexOf("/servlet") &gt; 0)
                    servername = servername.substring(0, servername.indexOf("servlet"));
                attach.append(res.getString("smileswrk"));
                attach.append("/attachments");
                attach.append(request.getRequestURI().substring(0, index_u));
                attach.append("/");
                attach.append("performance");
                attach.append("/");
File dir = new File(attach.toString());
                if (!dir.isDirectory())
                    dir.mkdirs();
    MultipartRequest multiReq = new MultipartRequest(request, attach.toString(), 100 * 1024 * 1024);
strfile = multiReq.getFilesystemName("goaluploadingFile");
</code></pre>

<p>I am creating directory so that user can download it later from view after uploading it for that file need to be stored in server directory and this code is not working in .pptx because <code>MultipartRequest.getFilesystemName</code> method return null in case of <code>.pptx</code> file but in other extension case it gives uploaded file name like for instance <code>abc.txt</code>.</p>