[Zope] How to upload files and create file objects from DTML page?
Mark Spencer
markwspencer@bigpond.com
Mon, 25 Mar 2002 12:46:47 +1100
This is a multi-part message in MIME format.
------=_NextPart_000_0032_01C1D3FB.2094A8B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I want to have a normal DTML page for users that allows them to upload =
and download files (without needing to use the management interface). =
The downloading and display of files is fine, but I cant figure out the =
zope/python code to create a new file object and store an uploaded file. =
The files could be upto ~60MB in size, and can be zip or doc files etc. =
Has anyone seen suitable sample code for this?
------=_NextPart_000_0032_01C1D3FB.2094A8B0
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.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>I want to have a normal DTML page for users that =
allows=20
them to upload and download files (without needing to use the=20
management interface). The downloading and display of files is fine, but =
I cant=20
figure out the zope/python code to create a new file object and=20
store an uploaded file. The files could be upto ~60MB in size, and =
can be=20
zip or doc files etc. Has anyone seen suitable sample code for=20
this?</FONT></DIV></BODY></HTML>
------=_NextPart_000_0032_01C1D3FB.2094A8B0--