jQuery Multiple File Upload Plugin


i’m using this plugin http://www.fyneworks.com/jquery/multiple-file-upload/

If you are using it with cakephp , dont just rely on the form helper .. u need to add something to make it work.

<?php echo $this->Form->file(‘attachments’ , array(‘class’ => “multi max-2” , ‘name’ => “data[Attachment][]”)); ?>

notice the [] and also need to overwrite the name because if you dont , it will only upload the latest file that u select even if have already select more than 1 .

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge

This site uses Akismet to reduce spam. Learn how your comment data is processed.