actionscript - Uploading multiple files via Flash -


As is known, in each subsequent time, the FileReferenceList.browse () method is called, reset the FileReferenceList.fileList property The file that the user chooses in the dialog box. And my question is:

How to manage "remember" of all the previously selected files, in each subsequent time that the FileReferenceList.browse () method is called? so that the new ones and later upload them at all.

The file reference list is a collection of file references. File reference What you need to upload each file (you do not need the file's riflelist) You can simply copy all the items into another collection.

If you are feeling adventurous and want to do it in the OO mode then you can try it:

  • Make your own "appendable filereligious list"
  • Every time a file display list is created (i.e. called .browse ()), the returned list has been copied and added to your separate collection in the object has gone.
  • You then have complete control over that collection (when you need it, clean it)

Depending on your requirements, Can also take care of uploads.


Comments