upload LocalFS with python script
18 Jul
2003
18 Jul
'03
11:54 a.m.
Hi, When uploading a file with a pythonscript containing the following statements the size of the uploaded file is 0. file = container.REQUEST.form['FILE'] context.manage_addProduct['LocalFS'].manage_upload(file) What is the problem ? Regards, Michael
18 Jul
18 Jul
8:26 p.m.
New subject: [Zope] upload LocalFS with python script
When uploading a file with a pythonscript containing the following statements the size of the uploaded file is 0.
file = container.REQUEST.form['FILE'] context.manage_addProduct['LocalFS'].manage_upload(file)
What is the problem ?
Does your HTML form contain a correct encoding type? (If you upload a file, your FORM tag should specify enctype attribute: <form action="..." enctype="multipart/form-data"> ... <input type="file" ...> ) Regards, Dmitry
8297
Age (days ago)
8297
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dmitry Dembinsky -
Michael Bleijerveld