RE: [Zope] manage_upload and file objects
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="author" sedat -----------------------AaB03xAaB03x content-disposition: form-data; name="title" test -----------------------AaB03xAaB03x content-disposition: form-data; name="type" Fax -----------------------AaB03xAaB03x content-disposition: form-data; name="description" testing -----------------------AaB03xAaB03x content-disposition: form-data; name="topics:lines" Kibele (Kibele Files) -----------------------AaB03xAaB03x content-disposition: form-data; name="client" KDoc DocumentLibrary Client -----------------------AaB03xAaB03x content-disposition: form-data; name="submit" submit -----------------------AaB03xAaB03x content-disposition: form-data; name="contenttype" Fax -----------------------AaB03xAaB03x Content-disposition: form-data; name="file:ignore_empty"; filename="C:\test.tif" Content-Type: image/tiff Content-Transfer-Encoding: base64 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 = body & "Content-Type: image/tiff; Content-Transfer-Encoding: base64 " & vbCrLf & c,vbCrLf "Content-Transfer-Encoding" is a header of its own, not a parameter to "Content-Type".
Dieter
Sedat Yilmazer writes:
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 Maybe, I was wrong.... Sorry!
Is it mandatory to send the images base64 encoded? If not, use the same mechanism that browsers use for image upload. You can find out, how they do with Shane's "tcpwatch" product. I think, they send the image in binary form and provide a "Content-Length" header with the exact size of the image. Dieter
participants (2)
-
Dieter Maurer -
Sedat Yilmazer