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".<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 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 'x-zip-compressed'. When debugging, I saw MAFileModel then WAFile and then MultipartChunk. In MultipartChunk initializeFrom: aDictionary there is this code:<br>
<br>contentType := header at: 'content-type' ifAbsent: [MIMEDocument defaultContentType].<br><br>In this case, header at: 'content-type' answers me "x-zip-compressed". And 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>Thanks for any help you can give me.<br><br>Cheers,<br><br>Mariano<br><br>