[Zope] upload LocalFS with python script
Michael Bleijerveld
michael@bleijerveld.nl
Fri, 18 Jul 2003 13:54:16 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_002B_01C34D34.13D41490
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
When uploading a file with a pythonscript containing the following =
statements the size of the uploaded file is 0.
file =3D container.REQUEST.form['FILE']
context.manage_addProduct['LocalFS'].manage_upload(file)
What is the problem ?
Regards,
Michael
------=_NextPart_000_002B_01C34D34.13D41490
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>When uploading a file with a =
pythonscript=20
containing the following statements the size of the uploaded file is=20
0.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>file =3D=20
container.REQUEST.form['FILE']<BR></FONT><FONT face=3DArial=20
size=3D2>context.manage_addProduct['LocalFS'].manage_upload(file)<BR></FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2>What is the problem ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Michael</DIV></FONT>
<DIV><FONT face=3DArial size=3D2> </DIV></FONT></BODY></HTML>
------=_NextPart_000_002B_01C34D34.13D41490--