<div dir="ltr">PS: forgot the link: I tried out all of these: <a href="http://stackoverflow.com/questions/2422468/how-to-upload-files-to-server-using-jsp-servlet">http://stackoverflow.com/questions/2422468/how-to-upload-files-to-server-using-jsp-servlet</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 23, 2016 at 4:47 PM, basZero <span dir="ltr"><<a href="mailto:baszero@gmail.com" target="_blank">baszero@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>does anybody have a running example with the current Yanel release and Java 8 and Tomcat 7?</div><div>Thanks for sharing.</div><div><br></div><div>I tried out at least 4 variations, none of them works.</div><div><br></div><div>HTML:</div><div><div><form name="test123" action="/uploader" enctype="multipart/form-data" method="post"></div><div>  <input type="file" name="file" multiple="true"/></div><div>  <input type="hidden" name="usecase" value="1"/></div><div></form></div></div><div><br></div><div>Java:</div><div>As Tomcat 7 comes with Servlet 3.0, I tried the </div><div>request.getParts()</div><div>approach.</div><div><br></div><div>I also tried request.getFilenames() approach.</div><div><br></div><div>Also using the Apache Commons Fileupload library didn't work:</div><div><div>ServletFileUpload upload = new ServletFileUpload();</div><div>FileItemIterator iter = upload.getItemIterator(<wbr>request);</div></div><div><br></div><div>Any help is appreciated. Can't believe that today it is still this hard to get a multipart upload working on Java... </div><div><br></div><div>Second question: </div><div>Did anybody run Yanel on Tomcat 8? Because Tomcat 8 would come with Servlet 3.1 which has bugfixes for the multipart thing.</div><div><br></div><div>Cheers, Balz</div></div>
</blockquote></div><br></div>