prevent upload saving to disk

0 views
Skip to first unread message

Richard

unread,
Sep 9, 2009, 8:53:24 AM9/9/09
to web2py-users
I am using SQLFORM.factory to upload some files. By default
form.accepts() saves the file to disk. Is there a way to prevent this,
like the dbio flag does for the database?
I want to examine the file in memory and so don't need to write to
disk.

thanks,
Richard

mdipierro

unread,
Sep 9, 2009, 10:20:37 AM9/9/09
to web2py-users
db.mytable.myfield.uploadfield=False

and after form.accepts you can access

form.vars.myfield.file
form.vars.myfield.filename
Reply all
Reply to author
Forward
0 new messages