Re: [Zope] ExtFile - wrong file extension and content_type

2006-02-09 Thread Stefan H. Holek
Two things to check - Does your /etc/mime.types file on the server contain the correct entry for msword? - Do your clients (browsers) reliably sent the msword content-type? Stefan On 7. Feb 2006, at 19:16, Palermo, Tom wrote: All, I am working on a project using ExtFile. Lately, when

Re: [Zope] ExtFile - wrong file extension and content_type

2006-02-08 Thread Martijn Pieters
On 2/7/06, Michael Vartanyan [EMAIL PROTECTED] wrote: well. I would really like to know what does this b/w mean in this context? Not blackwhite for sure :-) I'd guess at 'backward compatibility'. -- Martijn Pieters ___ Zope maillist - Zope@zope.org

[Zope] ExtFile - wrong file extension and content_type

2006-02-07 Thread Palermo, Tom
All, I am working on a project using ExtFile. Lately, when uploading MS Word files, they get uploaded to the file system as .exe files (eg. test.doc becomes test.exe) and the content_type is set to application/octet-stream instead of application/msword. Sometimes the content_tpye is

Re: [Zope] ExtFile - wrong file extension and content_type

2006-02-07 Thread Michael Vartanyan
Which version of ExtFile are you using? Which OS? ExtFile has some strange hacks to guess the extension it should use. If it is unable to determine the content type from the upload, it would set in to application/octet-stream (which is OK so far), and then pass this wrong finding to