Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » How do I get the folder SWFUpload wants to put the files in?

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1110 Views
  • otherjohn
    Avatar
    Community Member
    125 Posts

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

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: How do I get the folder SWFUpload wants to put the files in? Link to this post

    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.

    1110 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.