Hi Cheese and others!
I have a podcast page setup that uses DOM. If the podcast file called "Attachment" is setup as a class "File", it will not recognized MP3s and instead classes them as type "FILE" in the DB. Which results in the MP3 functions not working. This function did work when using swfupload but not in Uploadify.
If I set the the "Attachment" as class MP3, it works of course, but I need to allow other file types. Is FILE still the wrong class type?
CODE:
static $has_one = array (
'Attachment' => 'FILE', // <-- WORKS FINE IF MP3
'SermonCastPage' => 'PodCastPage'
);
public function getCMSFields_forPopup()
{
return new FieldSet(
.....
......
new FileUploadField('Attachment','Podcast Audio File'),
....
);