Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » uploading more than 1 file with SWFUploadFileIFrameField

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 899 Views
  • Phill
    Avatar
    Community Member
    75 Posts

    uploading more than 1 file with SWFUploadFileIFrameField Link to this post

    Hey

    Im trying to use the flash uploader module for uploading more than 1 file at a time in the admin area, iv been looking through the documentation but cant get it to upload more than one file at a time, any ideas on what im doing wrong?

    static $has_one = array ('BigFile' => 'File');

    public function getCMSFields()
    {
       $fields = parent::getCMSFields();
       $fields->addFieldToTab("Root.Content.File", new SWFUploadFileIFrameField('BigFile','Upload a file',array('file_upload_limit' => '2')));
       return $fields;
    }

    The code doesnt seem to be triggering an error it just displays a javascript alert.

    "You have attempted to queue too many files.
    You may select 1"

    thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: uploading more than 1 file with SWFUploadFileIFrameField Link to this post

    Hi, Phill,

    Sorry, it doesn't handle a has_many File relation right now.

    I would try using the FileDataObjectManager if you have multiple files on your page.

    899 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.