This will require changes in this jquery plugin.

Probably I will have to create few input fields with different name
for file upload instead using this plugin.

On Sep 13, 5:01 pm, mdipierro <[email protected]> wrote:
> This may be an incorrect web2py behavior.
>
> Would you be able to upload them with different names instead of
> calling all of them images?
>
> On Sep 13, 2:21 am, ab <[email protected]> wrote:
>
> > Hi
>
> >   I'm trying to implement multiple file upload using jQuery Multiple
> > File Upload Pluginhttp://www.fyneworks.com/jquery/multiple-file-upload/
>
> >   Here is my form:
>
> >   <form method="post" enctype="multipart/form-data">
> > <input type="file" name="images" class="multi"/>
> > <input type="submit"/>
> > </form>
>
> >   If user uplads one file I can access filename and date, because it's
> > in FieldStorage.
>
> >   print request.vars
> >    <Storage {'images': FieldStorage('images', 'filea.txt', 'aaa\n')}>
>
> >   The problem is with multiple file upload
>
> >   When I select two files, following http request is send
>
> > Content-Type: multipart/form-data;
> > boundary=---------------------------1463461818859210367497334604
>
> > Content-Length: 385
>
> > -----------------------------1463461818859210367497334604
>
> > Content-Disposition: form-data; name="images"; filename="filea.txt"
>
> > Content-Type: text/plain
>
> > aaa
>
> > -----------------------------1463461818859210367497334604
>
> > Content-Disposition: form-data; name="images"; filename="fileb.txt"
>
> > Content-Type: text/plain
>
> > bbb
>
> > -----------------------------1463461818859210367497334604--
>
> >   but request.vars.images has only file data without filename
> > information
>
> >   print request.vars
> >    <Storage {'images': ['aaa\n', 'bbb\n']}>
>
> >   Any idea how can I access filename for multiple files?
>
> >   Thanks in advance for help.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to