I tried simplifying the situation, by forgetting about the file upload
for now, and just posting a text string
db.define_table( 'names',
Field('name', 'string' ))
def upload2():
form=FORM(TABLE(TR(Your
name:,INPUT(_type=text,_name=name,requires=IS_NOT_EMPTY())),
For one, the formkey is generated in the session. So you can only
submit the form once after it is generated with your session, since
curl is not tied to your browser session formkey will not work.
You need to not pass session to form.accepts and then it will work.
form.accepts(request.vars)
That did it!
Thank you very much.
On Feb 11, 5:46 pm, Thadeus Burgess thade...@thadeusb.com wrote:
For one, the formkey is generated in the session. So you can only
submit the form once after it is generated with your session, since
curl is not tied to your browser session formkey will not
3 matches
Mail list logo