This looks like a bug, but it may have something to do with my sever configuration
I never got MIME detection working correctly.
This time, ppt files are recognzed as doc files, with the .doc extension added to the file name in addition to .ppt fiel original extension.
I tried the 3 possible setting of "Server-side MIME type autodetection after upload:" in admin/settings/file/mime
- "enabled" changes ppt to doc
- "disabled" makes ppt not regognized as such
- "Conditionnal" did the same than "enabled"
.doc and .pdf files are correctly handled
the "disabled" option makes none of the file types to be recognized
What do I have to look on the server side in order to benefit of a "natural" Apache detection instead of the buggy FF's ?
Thanks
Comments
Comment #1
jvieille commentedUpdate: there are problems only when uploading files from a WebDav client, through File Server / DAV API.
So this should be a problem with the File (taxonomy) server module
Comment #2
jvieille commentedComment #3
jvieille commentedPlease help!
This is a great module, and the last problem I encounter with it
Thank you
Comment #4
jvieille commentedAnyone listening?
Comment #5
jvieille commentedAnyone listening?
Is this module maintained?
Comment #6
jvieille commentedHeeeeeeeeeeeeeeeeeeeeellllllllllllllllllllllllllllllllllllooooooooooooooooooooo!
Unmaintained module?
Comment #7
jvieille commentedRefreshing the topic
Comment #8
skeezix commentedHi jvieille,
I got the same problem as you - and I found a solution.
Well, I am not a pro more an amateur and maybe my solution is far from perfect (I suppose it) but it works (at least for me).
I changed the function _fileserver_create_file in fileserver.module and copied some code from the fileframework module in it. Now the mimetype is detected on uploading via webdav.
This is what the function looks like now:
I am sure it is not elegant but I did not have much time and only a little desire to dive deeper into the code of fileframework and fileserver. At least it works.
One more thing I discovered is the conversion and indexing on a cron run.
When you upload a file via WEBDAV it does not get converted imediately. Conversion is done on cron run. The order of the default cron run is not ok for this because it first updates the search index and then does file conversions. This means that PDF files that I added via WEBDAV did not get indexed. So I installed SuperCron (http://drupal.org/project/supercron) and changed the cron run order.
Hope I could be of any help for you.
Thomas
Comment #9
jvieille commentedI don't use much Webdav anymore as this is a quite unstable and unsupported feature by modern OS.
XP and Vista does not work, I only find one workable solution, Bitkinex, which is a dead project.
Thanks anyway
Comment #10
mrangryfish commentedHi @jvieille
Webdav seems fine as long as you don't expose it directly to the end clients. I use DAVFS2 to mount the webdav to a mount point (eg /mnt/drupal_dav/) and then use Samba to share that directory out. Means you get the stability and cross platform support of Samba/mapped drives (and then easily LDAP authz) and the awesomeness of 'virtual' folders (taxomony/tags) and Fileframework goodness. Make sure in your /etc/davfs2/davfs2.conf that use_locks is turned off (0) as the php PEAR webdav server technology behind the drupal dav module doesn't support locking. And that is why webdav directly to the client doesnt work great in Win 7 or OSX (kinda works in XP, and if you use Cyberduck etc). But davfs2 can connect as dav level 1 (no locking) and it seems to work fine, and I'm testing with 1-2GB video files.
@skeezix: Thanks for your patch and suggestion to use SuperCron. I'll give them a go.
Fileserver seems more stable than Filerelationserver. If I enable both then put's into the taxonomy folders on FS dont work. Works fine if FRS is disabled.
Cheers,
Christiaan Kortekaas
Comment #11
jvieille commentedThanks for the suggestion.
I reached the same conclusion about FRS ans FS, though FS seems not supported and FRS is the recommended module by FF maintainers (because of its OG awareness I suppose)