Options on sorted upload - Multi file select

  •  03-24-2011, 12:40 PM

    Options on sorted upload - Multi file select

    Requirement:  files selected to be uploaded in alphanumneric order after select
     
    most camers are going to take photos in some type of sequential order : DSC001.jpg, DSC002.jpg, ... DSC014.jpg    etc
     
    By Default if you select :  photo1,  then shift+photo14,   the upload order is :    DSC014, DSC001, DSC002  etc
    However If you select  : photo14, then shift+photo1,  the upload order stays sorted:     DSC001, DSC002... DSC014
     
    if I am able to get the QUEUE list & FileState ( no files to this point have been uploaded )
    function CuteWebUI_AjaxUploader_OnQueueUI(list){ 
      for (var i = 0; i < list.length; i++)
       { 
         photostr.push(list[i].FileName);  
       }
        photostr.sort();
       alert(photostr);
     }
    can the QUEUE TABLE be reordered ( sorted )?
     
    the long and cumbersome way seems to be to have to process (upload) the files in whatever default order they come in, ( now they could be correct if selected in reverse) , instead of having them be able to be renamed at this point,  ,  eval the JSON response reprocess the list, store it in an array , sort it , add a jquery call (or other) in the CuteWebUI_AjaxUploader_OnPostback() to rename the files
     
    or am i missing something some where?
View Complete Thread