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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Directory Setting for Uploadify


Go to End


4 Posts   1900 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, 4102 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, 4102 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