> No need for 'form_data'. When you upload the file, the field values are
> stored in request.vars and then transferred into form.vars. The file upload
> will be in form.vars.myfile, which will already be a cgi.FieldStorage()
> object. So, form.vars.myfile.file will be the open file object, and
> form.vars.myfile.filename will be the original name of the uploaded file.

I have error in this

form.vars.myfile.filename
<type 'exceptions.AttributeError'>('str' object has no attribute
'filename')

form.vars.myfile.file
<type 'exceptions.AttributeError'>('str' object has no attribute
'file')

Miroslav

Reply via email to