I've also got a need to support uploading multiple files (perhaps
hundreds at a time) and arranging for each of them to result in a new
database record.  What's the recommended way to do this?
Thanks,
Mike

On Sep 13, 11:35 am, ab <adam.ba...@googlemail.com> wrote:
> This will require changes in this jquery plugin.
>
> Probably I will have to create few input fields with different name
> for fileuploadinstead using this plugin.
>
> On Sep 13, 5:01 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > This may be an incorrect web2py behavior.
>
> > Would you be able touploadthem with different names instead of
> > calling all of them images?
>
> > On Sep 13, 2:21 am, ab <adam.ba...@googlemail.com> wrote:
>
> > > Hi
>
> > >   I'm trying to implementmultiplefileuploadusing jQueryMultiple
> > > FileUploadPluginhttp://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 withmultiplefileupload
>
> > >   When I select twofiles, 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 formultiplefiles?
>
> > >   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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to