It probably isn't helpful for multiple file uploads, but you can do
bulk insert with the CSV interface. You might need to write a little
JavaScript magic to convert multiple forms into a CSV format, but it
shouldn't be terribly difficult.

For multiple uploads, you could just put multiple forms on a page,
hidden, and just unhide them with JavaScript when requested. Then use
the standard SQLFORM and CRUD validation tools to handle multiple
forms on a single page, but allow them to be optional instead of
producing page errors when they are not filled in.  There is a section
in the web2py book about multiple forms on a single page.  Of course,
that necessitates setting a predetermined limit on the number of
simultaneous bulk creations.

--Greg

On Apr 11, 11:31 pm, 黄祥 <steve.van.chris...@gmail.com> wrote:
> hi,
>
> is it possible to insert several data simultanously (bulk insert) in
> web2py using crud or sqlform? i mean, like select several image file
> and then upload it, or maybe using jquery add or remove form field
> any suggestion or reference for doing that?
>
> thank you so much

Reply via email to