<br><br><div class="gmail_quote">On Fri, Jun 12, 2009 at 6:49 AM, Philippe Marschall <span dir="ltr"><<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/6/12 Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi folks! I am having a problem with mimeType for zip files. I have a zip<br>
> file that I am trying to upload to a Pier component called Gallery. This<br>
> component expects a file with mimeType "application/zip".<br>
><br>
> 1) Situation in Ubuntu and firefox:<br>
><br>
> After debugging I found this problem: My file is called "fotos.zip" and if I<br>
> do in a linux console: file -i fotos.zip y get "application/zip".<br>
> However, when I uploaded it to seaside, the mimeType is interpreted as<br>
> 'x-zip-compressed'. When debugging, I saw MAFileModel then WAFile and then<br>
> MultipartChunk. In MultipartChunk initializeFrom: aDictionary there is this<br>
> code:<br>
><br>
> contentType := header at: 'content-type' ifAbsent: [MIMEDocument<br>
> defaultContentType].<br>
><br>
> In this case, header at: 'content-type' answers me "x-zip-compressed". And<br>
> if I see<br>
> HttpRequest>>nextChunkHeader it is also there like "x-zip-compressed".<br>
><br>
><br>
> 2) Situation in Windows Vista and firefox: the same as 1)<br>
><br>
> 3) Situation in Windows Vista and IE:<br>
> header at: 'content-type' answers "key not found" :(<br>
><br>
> Does someone know what can be happening?<br>
<br>
</div></div>The browser sends the file as "x-zip-compressed".</blockquote><div><br>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?<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Cheers<br>
Philippe<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br>