💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[![Uploadify - JQuery File Upload Plugin Script](https://box.kancloud.cn/2015-11-02_5636cc82d8b6c.png)](http://www.uploadify.com) # onAllComplete Input Type:**function** Input Format:**function(event,data) { some code }** Required:**optional** The **onAllComplete** option allows you to set a custom function that will fire when all the files in the queue have finished uploading. The default function clears the error array. If you set your custom function to return **false**, the default function will not run. ### Arguments **event** The event object. **data** An object containing details about the upload. - **[filesUploaded]** - The total number of files uploaded - **[errors]** - The total number of errors encountered - **[allBytesLoaded]** - The total number of bytes uploaded - **[speed]** - The average upload speed in KB/s ### Demo Javascript Code 1. $('#file_upload').uploadify({ 1.   'uploader'      : '/uploadify/uploadify.swf', 1.   'script'        : '/uploadify/uploadify.php', 1.   'cancelImg'     : '/uploadify/cancel.png', 1.   'folder'        : '/uploads', 1.   'onAllComplete' : function(event,data){ 1.       alert(data.filesUploaded + ' files uploaded successfully!'); 1.     } 1. }); HTML Code 1. <inputtype="file"id="file_upload"name="file_upload"/> 1. <ahref="javascript:$('#file_upload').uploadifyUpload();">Upload Files</a> [Upload Files](#) [![Download the Latest Version](https://box.kancloud.cn/2015-11-02_5636cc82ea7d9.png)](#) Help keep Uploadify free and support the development of other excellent apps! ![](../image/564003e0ed397.gif) [home](#)  |  [about](#)  |  [download](#)  |  [demos](#)  |  [documentation](#)  |  [faqs](#)  |  [forums](#) ©2011 by [Reactive Apps](http://www.reactiveapps.com)