Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Trouble with MP4's


Go to End


3 Posts   2147 Views

Avatar
vstrazz

Community Member, 63 Posts

16 October 2009 at 3:54am

Hey guys,

When I upload an MP4 video, the DOM seems to get confused sometimes and add it as audio. I have it set in the allowed file types in FLV.php and in the page I'm using the DOM on.

Any Ideas?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

16 October 2009 at 6:20am

I don't see how that could happen. A file gets upgraded to the MP3 class based on its extension matching the $allowed_file_types array in the MP3 class. The only value in there is 'mp3', so I don't know how mp4 would sneak through as a false positive.

Is the file being stored in the File table with ClassName MP3?

Avatar
vstrazz

Community Member, 63 Posts

16 October 2009 at 7:48am

It's weird, I just uploaded the same MP4 that did it earlier and I cant get the issue to duplicate. The next time it comes up I will check the class.

It would show the icon for the file as the sound icon and not let me attach it to my video DOM. ( which only allows certain file types, mp4 included ).

I will check the DB next time, I tried to duplicate it twice with no success though.