7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » DataObjectManager custom upload destination
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: | 722 Views |
-
DataObjectManager custom upload destination

14 July 2010 at 5:13am
How can I add custom upload destination folder?
And also I want parse FileName in order to set Item.Name, shall I use onBeforeWrite?
$dataobjectmanager = new ImageDataObjectManager(
$this,
'ItemsPage',
'Item',
'Photo',
array('Thumb' => 'Photo', 'Name' => 'Name', 'Description' => 'Description'),
'getCMSFields_forPopup'
); -
Re: DataObjectManager custom upload destination

14 July 2010 at 5:50am
Two ways:
$manager->allowUploadFolderSelection();
or
$manager->setUploadFolder($folder);
| 722 Views | ||
|
Page:
1
|
Go to Top |

