17 Jun
2001
17 Jun
'01
7:25 p.m.
Tom Deprez writes:
Can somebody help me on how I can get the filename of a FileUpload object in a python script?
When using following code in a python script,
context.REQUEST['accessory_image'].filename
I get always the following error :
Error Type: AttributeError Error Value: 'string' object has no attribute 'filename' "REQUEST['accessor_image'] is a string and not a FileUpload instance.
Are you sure, you followed the preconditions for file upload? * method='post' * enctype='multipart/form-data' * input type=file Dieter