[Seaside] Problem with zip file and mimetype
Mariano Martinez Peck
marianopeck at gmail.com
Fri Jun 12 13:13:00 UTC 2009
On Fri, Jun 12, 2009 at 6:49 AM, Philippe Marschall <
philippe.marschall at gmail.com> wrote:
> 2009/6/12 Mariano Martinez Peck <marianopeck at gmail.com>:
> > Hi folks! I am having a problem with mimeType for zip files. I have a zip
> > file that I am trying to upload to a Pier component called Gallery. This
> > component expects a file with mimeType "application/zip".
> > 1) Situation in Ubuntu and firefox:
> > After debugging I found this problem: My file is called "fotos.zip" and
> if I
> > do in a linux console: file -i fotos.zip y get "application/zip".
> > However, when I uploaded it to seaside, the mimeType is interpreted as
> > 'x-zip-compressed'. When debugging, I saw MAFileModel then WAFile and
> > MultipartChunk. In MultipartChunk initializeFrom: aDictionary there is
> > code:
> > contentType := header at: 'content-type' ifAbsent: [MIMEDocument
> > defaultContentType].
> > In this case, header at: 'content-type' answers me "x-zip-compressed".
> > if I see
> > HttpRequest>>nextChunkHeader it is also there like "x-zip-compressed".
> > 2) Situation in Windows Vista and firefox: the same as 1)
> > 3) Situation in Windows Vista and IE:
> > header at: 'content-type' answers "key not found" :(
> > Does someone know what can be happening?
> The browser sends the file as "x-zip-compressed".
And how can I change this in firefox for example? anyway is this ok? I mean,
should I change the code so that this accepts also "x-zip-compressed" or
change my browser?
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside