Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Trouble with MP4's

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1227 Views
  • vstrazz
    Avatar
    Community Member
    63 Posts

    Trouble with MP4's Link to this post

    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?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Trouble with MP4's Link to this post

    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?

  • vstrazz
    Avatar
    Community Member
    63 Posts

    Re: Trouble with MP4's Link to this post

    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.

    1227 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.