[Yanel-dev] Multipart POST

basZero baszero at gmail.com
Fri Sep 23 10:53:16 EDT 2016


PS: forgot the link: I tried out all of these:
http://stackoverflow.com/questions/2422468/how-to-upload-files-to-server-using-jsp-servlet

On Fri, Sep 23, 2016 at 4:47 PM, basZero <baszero at gmail.com> wrote:

> Hi,
>
> does anybody have a running example with the current Yanel release and
> Java 8 and Tomcat 7?
> Thanks for sharing.
>
> I tried out at least 4 variations, none of them works.
>
> HTML:
> <form name="test123" action="/uploader" enctype="multipart/form-data"
> method="post">
>   <input type="file" name="file" multiple="true"/>
>   <input type="hidden" name="usecase" value="1"/>
> </form>
>
> Java:
> As Tomcat 7 comes with Servlet 3.0, I tried the
> request.getParts()
> approach.
>
> I also tried request.getFilenames() approach.
>
> Also using the Apache Commons Fileupload library didn't work:
> ServletFileUpload upload = new ServletFileUpload();
> FileItemIterator iter = upload.getItemIterator(request);
>
> Any help is appreciated. Can't believe that today it is still this hard to
> get a multipart upload working on Java...
>
> Second question:
> Did anybody run Yanel on Tomcat 8? Because Tomcat 8 would come with
> Servlet 3.1 which has bugfixes for the multipart thing.
>
> Cheers, Balz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mx2.wyona.com/pipermail/yanel-development/attachments/20160923/e5eaaaf5/attachment.html>


More information about the Yanel-development mailing list