Hey guys,
I've had a few issues related to mime type detection and (I think) webdav. Using webdav on winXP to upload .pdfs caused there to be a lack of mime data associated with the file.
I had server detection turned off, and it looks like windoze didn't report the mime.type when it created the file. I'm not sure if this is a known issue, so I'll head over to the webdav issue pages next. I've since turned on server side detection, and that seems to be working, but in the meantime I've got quite a few files that need to have their mime types re-detected.
When downloading the files with Google Chrome, I get files like file.pdf.bin.pdf (it apparently gets what's going on) but Firefox/IE get file.pdf.bin -
Thanks,
Justin
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | FileFramework.png | 31.41 KB | justin.hopkins |
Comments
Comment #1
miglius commentedSee #282955: Use other file MIME detection instead of the mime.types file, I'm planning of letting overwrite the mime types.
Comment #2
miglius commentedCould you upgrade to the dev version of the module and check if the issue is still there?
Comment #3
justin.hopkins commentedSorry for the late reply - I've been on vacation (finally!)...We actually made the site live right before I left, so I haven't actually set up a working sandbox to test things like this. I'll definitely give it a try asap.
Comment #4
justin.hopkins commentedI've had a chance to try this out now. It's definitely a vast improvement, but the original problem of pdf's being uploaded via webdav not being recognized properly is still there. pdf's uploaded via webdav download as *.pdf.bin
Comment #5
justin.hopkins commentedA screenshot
Comment #6
miglius commentedJustin, I'm passing this issue to you as it is DAV related.
Do you use file_node_save() when you create a file node for a file uploaded via DAV? If not, do you use file_mime_guess() and file_mime_detect() to set the proper MIME type?
Here is how file_node_save() does it: