17452 Posts in 4473 Topics by 1971 members
|Go to End|
6 April 2008 at 6:01am Last edited: 6 April 2008 6:05am
I want to define the upload directory for different fields that i am using in the cms to keep them organised. For example...
$fields->addFieldToTab("Root.Content.Files", new FileIFrameField('SermonMP3', 'MP3 Audio'));
$fields->addFieldToTab("Root.Content.Files", new FileIFrameField('SermonPDF', 'PDF Download'));
I want the MP3 to save into "/assets/MP3" and PDF to save into ".assets/PDF".
Is there anyway to do this?
6 April 2008 at 6:52pm
currently you can't switch uploads based on their mimetype out of the box - please subclass FileIframeField and overwrite its saveInto() method. would be great if you can provide your customization in the forum, perhaps we can find a way to integrate this into the core.
|Go to Top|