<br><br><div class="gmail_quote">On Fri, Jun 12, 2009 at 6:49 AM, Philippe Marschall <span dir="ltr">&lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt;</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 &lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi folks! I am having a problem with mimeType for zip files. I have a zip<br>
&gt; file that I am trying to upload to a Pier component called Gallery. This<br>
&gt; component expects a file with mimeType &quot;application/zip&quot;.<br>
&gt;<br>
&gt; 1) Situation in Ubuntu and firefox:<br>
&gt;<br>
&gt; After debugging I found this problem: My file is called &quot;fotos.zip&quot; and if I<br>
&gt; do in a linux console: file -i fotos.zip y get &quot;application/zip&quot;.<br>
&gt; However, when I uploaded it to seaside, the mimeType is interpreted as<br>
&gt; &#39;x-zip-compressed&#39;. When debugging, I saw MAFileModel  then WAFile and then<br>
&gt; MultipartChunk. In MultipartChunk  initializeFrom: aDictionary there is this<br>
&gt; code:<br>
&gt;<br>
&gt; contentType := header at: &#39;content-type&#39; ifAbsent: [MIMEDocument<br>
&gt; defaultContentType].<br>
&gt;<br>
&gt; In this case, header at: &#39;content-type&#39; answers me &quot;x-zip-compressed&quot;. And<br>
&gt; if I see<br>
&gt; HttpRequest&gt;&gt;nextChunkHeader   it is also there like &quot;x-zip-compressed&quot;.<br>
&gt;<br>
&gt;<br>
&gt; 2) Situation in Windows Vista and firefox:  the same as 1)<br>
&gt;<br>
&gt; 3) Situation in Windows Vista and IE:<br>
&gt; header at: &#39;content-type&#39; answers &quot;key not found&quot;  :(<br>
&gt;<br>
&gt; Does someone know what can be happening?<br>
<br>
</div></div>The browser sends the file as &quot;x-zip-compressed&quot;.</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 &quot;x-zip-compressed&quot; 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>