Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Change File Upload Directory for FileIFrameField

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1727 Views
  • mcocolla
    Community Member
    4 Posts

    Change File Upload Directory for FileIFrameField Link to this post

    I am trying to create a page template based on the StaffPage.php template from the tutorials.
    I have defined a file upload field using FileIFrameField but I want the files that are uploaded in this field to go to a directory other than /assets/Uploads.

    How can I modify this code to change the upload directory to /assets/vcard?

    $fields->addFieldToTab("Root.Content.Main", new FileIFrameField('Vcard'),'Content');


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.