In Flash runtime, with option "multipart = true", the events emitted and the 'total' progress vars are somewhat confusing and incosistent with other runtimes.
This has been observed with Flash 10, in both Linux and Windows versions of Firefox, and plupload 1.2.1.
For instance, while uploading 3 files in succession, the series of events emitted as shown with Firebug console.log statements for the last file is as follows:
- a FileUploaded event
bytesPerSec 1623051
failed 0
loaded 12528323
percent 73
queued 1
size 17370908
uploaded 2
- An UploadProgress event
bytesPerSec 1623051
failed 0
loaded 12528323
percent 73
queued 1
size 17370908
uploaded 2
- An UploadProgress event
bytesPerSec 1120101
failed 0
loaded 12528323
percent 73
queued 0
size 17370908
uploaded 3
For the first two files there are equivalent values.
The problem is two-fold:
a) The FileUploaded event says that the file was uploaded, yet the 'total' object does not reflect this. Only on the last 'uploadProgress' event can we be sure that everything was actually uploaded properly.
b) The first uploadprogress event is clearly out of order and offers no information. The second uploadprogress has the complete upload total counts, but this is terribly inconsistent with other runtimes and thus makes the autodetection of runtimes in plupload useless with regard to flash.
If you need any more information let me know.