Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » S3 Filetypes and DOM

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: 726 Views
  • otherjohn
    Community Member
    125 Posts

    S3 Filetypes and DOM Link to this post

    Ok, got a question here. If I am using DOM to upload MP3's to the Amazon S3 servers, is there a way I can classify in my code what type of file was uploaded so I can use the MP3 functionality?


  • UncleCheese
    4085 Posts

    Re: S3 Filetypes and DOM Link to this post

    Nope. Can't have the best of both worlds. Not until PHP supports multiple inheritance. Although, you could probably subclass the S3File class and copy over the Player() function from MP3. Not sure what else you'd need. I think it's pretty straightforward.

    Ideally, of course, you don't have to duplicate any code. Multiple inheritance would allow classes to inherit from multiple parents, meaning your S3MP3 class could inherit from both S3File and MP3.

    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

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.