[Yanel-dev] Multipart POST

Michael Wechner michael.wechner at wyona.com
Sat Sep 24 16:32:51 EDT 2016


Hi Balz

you mean like uploading an image for example:

http://www.musealia.org/en/index.html

?

If so, please let me know and I can send you the source code.

Thanks

Michael


Am 23.09.16 um 16:47 schrieb basZero:
> 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/20160924/ffa4b353/attachment.html>


More information about the Yanel-development mailing list