Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Directory Setting for Uploadify


Reply


4 Posts   1082 Views

Avatar
Johnny

Community Member, 34 Posts

9 September 2010 at 4:26am

Hi UncleCheese!

For of all, good job with the new Uploadify module!

I would like to know if it would be easy to add a setting that would set the « default upload directory ». Sometimes, users like to get directed where to put their files, they won't have to think in which directory goes a specific object, let's say a « Press Release », for example.

I hope this is clear enough :)

Thanks,

JP

Avatar
UncleCheese

Forum Moderator, 4093 Posts

9 September 2010 at 5:49am

$your_uploader->uploadFolder = "press-releases";

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
Johnny

Community Member, 34 Posts

9 September 2010 at 5:57am

Could it be more easier? I don't think so! :)

Thanks!

Avatar
UncleCheese

Forum Moderator, 4093 Posts

9 September 2010 at 6:13am

If you experience any unexpected behaviours, you can either update your SVN, or download a fresh version of the module. That feature underwent a few feature enhancements today. Glad you're liking it!

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com