开发者

How to change position of files in plupload

开发者 https://www.devze.com 2023-04-11 23:20 出处:网络
i m using plupload in my site for uploading files. I want user able to sort files (change position files) before start uploading.

i m using plupload in my site for uploading files. I want user able to sort files (change position files) before start uploading. for that i have attached jquery ui sortable plugin on the queue changed event that working fine but when we sort a file it will sort in the ui 开发者_运维百科but actual position of file remain same. so the uploading start in their internal sequence. it there any way to sort files in plupload as I like. pls tell me if anybody know


I don't know if plupload supports custom sorting of queued files, or manually changing their index. plupload is a typical flash-based multiple file uploader. The filedata is stored in flash (along with the order).

So changing the order in the DOM (with jquery) isn't going to affect the actual upload order. In the plupload documentation I read something about a QueueChangedevent public event QueueChanged(uploader:Uploader).

This event is fired when the upload queue is changed (files added or removed. you'll have access to uploader.files array. See if you can sort the array here.

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号