7913 Posts in 1355 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 913 Views |
-
Upgrading .mp3 to MP3 class without popup upload

3 October 2009 at 3:56pm
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 -
Re: Upgrading .mp3 to MP3 class without popup upload

3 October 2009 at 9:08pm
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
-
Re: Upgrading .mp3 to MP3 class without popup upload

4 October 2009 at 2:42am
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.
| 913 Views | ||
|
Page:
1
|
Go to Top |
