0

我正在尝试计算uploadify中队列的总百分比,

onProgress 内置函数返回以下内容:

onProgress

percentage 
bytesLoaded 
allBytesLoaded 
speed 

起初我认为“百分比”会返回队列的总百分比。但是我后来发现它只返回正在上传的项目的百分比。

所以我的问题是,我可以计算所有文件的总百分比并获得已上传的总数吗?

请帮忙

4

1 回答 1

0

我猜通过使用onSelect和/或onSelectOnce你可以计算总百分比作为这两个回调

onSelect: fileObj
    size – The size in bytes of the file

onSelectOnce: data
    fileCount – The total number of files in the queue 
    allBytesTotal – The total number of bytes for all files in the queue

摘自Uploadify 文档

于 2009-12-23T17:46:53.393 回答