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

How do I get the folder SWFUpload wants to put the files in?


Go to End


2 Posts   1601 Views

Avatar
otherjohn

Community Member, 125 Posts

2 June 2010 at 12:47am

Hi all,
I have managed to modify SWFupload to upload files to Amazon S3 directly. But now I need to pass the folder values over so that I can put the files in a specific folder on the S3 server. Can someone tell me what variable carries that. I see where its written on the page at
<h2 id="FileDataObjectManager_Popup_UploadForm_HeaderFieldAdd-files-to-images-s">Add files to "images"s</h2> where "image" is the folder name, but I cant find where that is writen in the code.
Can someone help?
JOhn

Avatar
UncleCheese

Forum Moderator, 4102 Posts

2 June 2010 at 1:35am

You can use SWFUploadConfig::addStaticPostParams() or SWFUploadConfig::addDynamicPostParams() to pass data to the swfupload handler. A dynamic post param would be the name of a field on your form, in case you want a user-defined value for the post, but it sounds like with S3, you just need static params.