<div dir="ltr">Hi Michael,<div><br></div><div>no, I mean multiple images at once... So 1 Button, but you select multiple files and upload them. </div><div>See my HTML (enctype, multiple):</div><div><div><form name="test123" action="/uploader" <b>enctype="multipart/form-data"</b> method="post"></div><div> <input type="file" name="file" <b>multiple="true"</b>/></div><div> <input type="hidden" name="usecase" value="1"/></div><div></form></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 24, 2016 at 10:32 PM, Michael Wechner <span dir="ltr"><<a href="mailto:michael.wechner@wyona.com" target="_blank">michael.wechner@wyona.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Balz<br>
<br>
you mean like uploading an image for example:<br>
<br>
<a href="http://www.musealia.org/en/index.html" target="_blank">http://www.musealia.org/en/<wbr>index.html</a><br>
<br>
?<br>
<br>
If so, please let me know and I can send you the source code.<br>
<br>
Thanks<br>
<br>
Michael<br>
<br>
<br>
Am 23.09.16 um 16:47 schrieb basZero:<br>
</div><div><div class="h5">
<blockquote type="cite">
<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>
<br>
<fieldset></fieldset>
<br>
</blockquote>
<br>
</div></div></div>
<br>--<br>
Yanel-development mailing list <a href="mailto:Yanel-development@wyona.com">Yanel-development@wyona.com</a><br>
<a href="http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development" rel="noreferrer" target="_blank">http://mx2.wyona.com/cgi-bin/<wbr>mailman/listinfo/yanel-<wbr>development</a><br></blockquote></div><br></div></div>