[Zope] manage_upload and file objects
Sedat Yilmazer
sedat@kibele.com
Sat, 30 Jun 2001 21:40:17 +0300
I have tried all combinations. Also looked at the cgi.py in ZPublisher =
and there seems to be no code to handle
content-transfer-encoding
Here is the body of the post and all I see is a text fileon the Zope =
side
-----------------------AaB03xAaB03x
content-disposition: form-data; name=3D"author"=20
sedat
-----------------------AaB03xAaB03x
content-disposition: form-data; name=3D"title"=20
test
-----------------------AaB03xAaB03x
content-disposition: form-data; name=3D"type"=20
Fax
-----------------------AaB03xAaB03x
content-disposition: form-data; name=3D"description"=20
testing
-----------------------AaB03xAaB03x
content-disposition: form-data; name=3D"topics:lines"=20
Kibele (Kibele Files)
-----------------------AaB03xAaB03x
content-disposition: form-data; name=3D"client"=20
KDoc DocumentLibrary Client
-----------------------AaB03xAaB03x
content-disposition: form-data; name=3D"submit"=20
submit
-----------------------AaB03xAaB03x
content-disposition: form-data; name=3D"contenttype"=20
Fax
-----------------------AaB03xAaB03x
Content-disposition: form-data; name=3D"file:ignore_empty"; =
filename=3D"C:\test.tif"=20
Content-Type: image/tiff
Content-Transfer-Encoding: base64=20
SUkqAAgAAAAVAP4ABAABAAAAAgAAAAABBAABAAAAwAYAAAEBBAABAAAA9AgAAAIBAwABAAAA
AQAAAAMBAwABAAAAAwAAAAYBAwABAAAAAAAAAAoBAwABAAAAAgAAABEBBAABAAAAVgEAABIB
AwABAAAAAQAAABUBAwABAAAAAQAAABYBBAABAAAA9AgAABcBBAABAAAAak4BABoBBQABAAAA
CgEAABsBBQABAAAAEgEAABwBAwABAAAAAQAAACQBBAABAAAABAAAACgBAwABAAAAAgAAACkB
AwACAAAAAAAAADEBAgAVAAAAGgEAADIBAgAUAAAAQgEAAEcBAwABAAAAAAAAAMBPAQDMAAAA
AQAAAMQAAAABAAAAR05VIEdob3N0c2NyaXB0IDUuMTAAAAAAAAAAAAAAAAAAAAAAAAAAADIw
MDE6MDU6MjUgMTU6NTk6MDcAAICyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZ
AYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGA
slkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZ
AYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGA
slkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZAYCyWQGAslkBgLJZ
....
....
-----Original Message-----
From: Dieter Maurer [mailto:dieter@handshake.de]
Sent: Friday, June 29, 2001 10:01 PM
To: Sedat Yilmazer
Subject: RE: [Zope] manage_upload and file objects
Sedat Yilmazer writes:
> body =3D body & "Content-Type: image/tiff; =
Content-Transfer-Encoding:=20
> base64 " & vbCrLf & c,vbCrLf
"Content-Transfer-Encoding" is a header of its own,
not a parameter to "Content-Type".
Dieter