Not sure if you are familiar with YUI Uploader, but after you click "browse" and select a bunch of files, the event callback returns a list of all the files in the queue, not just the ones you just finished. This creates some problem, because now instead of just adding the selected files to the user interface, you need to clear the list and add them all again. You cannot even calculate the difference between existing files and all files, because their file identifier also randomly changes, like the order of the files in the queue. This slows down the user interface because it has to re-add things that were already there and confuses the user as all of their materials are randomly ordered. How did people deal with this? It would be logical to sort files by file name,to maintain some consistency (although adding to the end would be more logical), or did someone develop some kind of complicated solution to figure out which files were actually selected in the last operation?
in the current version of the YUI files added to event.fileList, to the end of the list with progressive identifiers and without shuffling their order. take a look at their example of downloading multiple files. It even continues the numbering order if you delete some files from the beginning of the queue.
yahoo uploader, , , , , , , javascript div, span , , , , , , event.fileList.fileNUBER , onselect .
YUI "Uploader.clearFileList" "Uploader.removeFile". .
Source: https://habr.com/ru/post/1710129/More articles:Select all inputs containing a custom attribute - extjsVIM project and tabs - vimHow to add values coming from 2 queries - sqlEffective SQL query to search for the first (by date) related record in the ratio 1-N - tsqlодновременно итерации через четные и нечетные элементы списка - pythonwhich has the best performance? static objects - performanceHow to run the ClickOnce application (.appref-ms) on a remote computer? - c #How to handle a dialog through selenium using python? - seleniumMaillog file in linux - linuxLinq query, how to build nested objects from one table - linqAll Articles