Closed (fixed)
Project:
File Entity (fieldable files)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Jan 2011 at 22:52 UTC
Updated:
21 Jan 2012 at 13:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
effulgentsia commented@hadsie: The media_dev profile comes with a file "profiles/media_dev/files/MediaGallery.mp4". If you don't have the profile locally, you can download just the file from http://drupalcode.org/viewvc/drupal/contributions/profiles/media_dev/fil.... Does this work for you? If so, but you have a file that doesn't and that you have permission to post here, please post it. Thanks.
Comment #2
hadsie commentedOk, so I've got a bit further on this. I don't believe it's an issue specific to chrome since I've just tested with FF and got the same thing :). However, I tried a .mov file and it uploaded fine (your mp4 also uploaded fine).
This seems directly related to the m4v video I'm trying to upload. The filemime is "application/octet-stream" which doesn't match the allowed mime types
setting but I have Match Type set to Any so that shouldn't matter. I believe the fact that it's an octet-stream is the reason the uri doesn't not contain a file extension.
I don't know a lot about video and video formats, but I created this m4v by exporting a much larger AVI from iMovie. If you still want me to post the video here I can. It's about 6MB... but I could just shorten it to make it much smaller with the same effect.
Comment #3
zandros commentedI am trying to upload a video file with an .avi extension and although it seems that it is uploading it in the explorer's progress bar, at the end it cancels the upload and not even an error is showing up. Does this behavior match with your own problem? (tested it with beta3)
Comment #4
justin.hopkins commentedI am also experiencing this with .m4v files despite having match type set to 'any'. I'm not sure if this is related, but I'm not getting thumbnails of videos that I upload with other formats, and they do not embed properly either. For a sample video asf_to_mpeg-1.mpeg I get the following markup:
The mimetype is detected properly as video/mpeg. This is exactly the same when the MediaGallery.mp4 file is used. It's odd that the src for the thumbnail image points to the video file itself...
Comment #5
JacobSingh commentedCan someone upload the file you're trying to add somewhere so I can test?
Comment #6
bryancasler commentedSame problem
Comment #7
JacobSingh commentedCan someone please provide an example file to test with?
Comment #8
JacobSingh commentedComment #9
flosuter commentedHi
You can find an example .m4v from iMovie here:
http://exorbitant.ch/download/1min.m4v
Comment #10
Anonymous (not verified) commentedHas there been further development on this issue?
Comment #11
johncionci commentedI was having the same issue, I was uploading a video and it was completing but never showing up, no errors either. I had to go into my .htaccess file to increase the max upload size and post size and it worked!! Now if I can only get a video player to show up...
Comment #12
arthurf commentedThis seems to be an issue with the core mime type listing. I filed a patch here: http://drupal.org/node/1290486 however here is a patch that fixes it in the mean time. Note that you will still have to have m4v in your list of allowed file extensions.
Comment #13
arthurf commentedHere's a slightly more robust version of the patch thanks to Alex.
Comment #14
dave reidWe should move this to file_entity so that more people have this fixed for them (and also make sure to have applied to file_entity separate project).
Comment #15
arthurf commentedMoved this code to the file_entity module. This will need to get moved to the real file_entity module in the 2.x branch.
Comment #17
tsvenson commentedMoving to File Entity so patch is tested correctly.
Comment #18
tsvenson commented#15: file_entity_m4v_fix.patch queued for re-testing.
Comment #19
tsvenson commentedHm, when look at the details for the re-test request I triggered, for the patch in #15, it says postponed. Is special permissions needed for this or did something else go wrong?
Comment #20
arthurf commentedRerolled and fixed issue with duplicate function
Comment #21
arthurf commentedComment #22
arthurf commentedComment #23
dave reidIt was a little hard for me to follow the array_flip(), reset() and key() logic. Revised patch that checks if the mimetype exists, and if not, adds it; then fetches the key of the mimetype, and assigns the extension.
Comment #24
dave reidArthur gave a verbal RTBC in our hotel room, so committed #23 to both file_entity 7.x-1.x and media 7.x-1.x:
http://drupalcode.org/project/file_entity.git/commit/ada8488
http://drupalcode.org/project/media.git/commit/66d3e7e
Comment #26
gajanannehul commentedHi
I am new to drupal and I am trying to download .m4v vedio file but its giving error to me.
I am working on drupal 6.