Hi!
I try to upload file, how can i check if file is upload
when i send empty input witch file upload i get
AttributeError: 'unicode' object has no attribute 'filename'
How can i check added file?
Hi!
I try to upload file, how can i check if file is upload
when i send empty input witch file upload i get
AttributeError: 'unicode' object has no attribute 'filename'
How can i check added file?
uploaded_file = request.params['fieldname'] if uploaded_file: print uploaded_file.filename
be sure to set multipart=True and to omit method="POST"
${h.form(c.formUrl, multipart=True)}