Jump to:

7939 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Upgrading .mp3 to MP3 class without popup upload

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: 1146 Views
  • Howard
    Avatar
    Community Member
    215 Posts

    Upgrading .mp3 to MP3 class without popup upload Link to this post

    Hi UncleCheese,

    I have the FDOM working well using mp3 and the built in player on the frontend. If I upload the file in the Popup then it works perfectly however if I add mp3s to the page that have already been uploaded (I ftp'd them up) then the player doesn't get included for those file in the frontend.

    I don't know exactly what mojo you're using to upgrade the File class to MP3 class but it appears to not work when the files aren't uploaded in the popup, I added an echo to the Player function but it didn't show up so I imagine that the function is'nt being called.

    Any ideas?

    Thanks,
    Howard

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Upgrading .mp3 to MP3 class without popup upload Link to this post

    Hey yea just had a bit of a poke around - the upgrade code is only in the handleswfupload function and so i just edited the database so that those files had the MP3 class and now everything works swimmingly

    Not that I need it anymore but you might want to look at including it in the file import.

    Thanks for everything

  • UncleCheese
    Avatar
    4085 Posts

    Re: Upgrading .mp3 to MP3 class without popup upload Link to this post

    Yeah, files need to be loaded through the upload feature to get upgraded. The implementation of SWFUpload in the popup makes it quite competitive with FTP, so I would stick to that.

    1146 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.