[Yanel-dev] Multipart POST

basZero baszero at gmail.com
Mon Sep 26 04:46:13 EDT 2016


Hi Michael,

no, I mean multiple images at once... So 1 Button, but you select multiple
files and upload them.
See my HTML (enctype, multiple):
<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>

On Sat, Sep 24, 2016 at 10:32 PM, Michael Wechner <michael.wechner at wyona.com
> wrote:

> 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
>
>
>
>
> --
> Yanel-development mailing list Yanel-development at wyona.com
> http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mx2.wyona.com/pipermail/yanel-development/attachments/20160926/34e0c4cc/attachment.html>


More information about the Yanel-development mailing list