ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[![Uploadify - JQuery File Upload Plugin Script](https://box.kancloud.cn/2015-11-02_5636cc82d8b6c.png)](http://www.uploadify.com) # onQueueFull Input Type:**function** Input Format:**function(event,queueSizeLimit) {}** Required:**optional** The **onQueueFull** option allows you to run a custom function when the number of files in the queue as set by the **queueSizeLimit** option is exceeded. The default function alerts the user that the queue is full and notes the maximum amount of files in the queue. If more than the number of allowed files is selected in one action, the allowed number of files are added to the queue and the event is triggered. If the custom function returns **false**, the default function does not run. ### Arguments **event **The event object.**** **queueSizeLimit **The maximum size of the queue as set by the **queueSizeLimit** option. ### 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.   'queueSizeLimit' : 3, 1.   'multi'          : true, 1.   'onQueueFull'    : function(event,queueSizeLimit){ 1.       alert("I'm stuffed, please don't put anymore files in me!"); 1.       returnfalse; 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/564003e164c2f.gif) [home](#)  |  [about](#)  |  [download](#)  |  [demos](#)  |  [documentation](#)  |  [faqs](#)  |  [forums](#) ©2011 by [Reactive Apps](http://www.reactiveapps.com)