I am trying to use curl to upload files.
1. Create table to handle files
db.define_table( 'files',
Field('file','upload'))
2. Controller for the form
def upload():
db.files.id.default = request.args(0)
form = crud.create(db.files)
return dict(form=form)
This works perfectly to upload a file from a browser at
http://127.0.0.1:8000/filer/default/upload/1
However, this curl command seems to do nothing
curl ^
-F [email protected] ^
-F _next= ^
-F _formkey=06962618-38d7-4ee2-ac80-fa6190024c6a ^
-F _formname=files/None ^
http://127.0.0.1:8000/filer/default/upload/3
--
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.