Note that there are some explanatory texts on larger screens.

plurals
  1. POplupload queue checking files on form submit has an issue
    text
    copied!<p>I'm having an issue in firing the uploader.start() in case if start button is not clicked for file upload, I am using latest version Plupload. here is the complete code, and I want to find the temp names given for each file uploaded on submit click, so that I can go to the server and rename the files with the reference ID which makes easy to identify the file that belongs.</p> <pre><code> &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;link href="Styles/jquery.plupload.queue.css" rel="stylesheet" type="text/css" /&gt; &lt;script src="Script/jquery-1.8.2.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="Script/FileUpload/plupload.full.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="Script/FileUpload/jquery.plupload.queue.js" type="text/javascript"&gt;&lt;/script&gt; &lt;title&gt;Test Page&lt;/title&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { $("#Testloader").pluploadQueue({ runtimes: 'flash', url: 'FileUpload.ashx', max_file_size: '100mb', urlstream_upload: true, chunk_size: '5MB', //unique_names: false, multiple_queues: true, filters: [ { title: "Document files", extensions: "pdf,doc,docx,tiff" }, { title: "Image files", extensions: "jpg,png" } ], // Flash settings flash_swf_url: 'Images/plupload.flash.swf', // // Silverlight settings // silverlight_xap_url: 'assets/resources/plupload.silverlight.xap', init: { FileUploaded: function (up, file, info) { }, FilesRemoved: function (up, files) { plupload.each(files, function (file) { }); } } }); }); $('form').submit(function (e) { alert("clicked me"); var uploader = $("#Testloader").pluploadQueue(); // Files in queue upload them first if (uploader.files.length &gt; 0) { // When all files are uploaded submit form uploader.bind('StateChanged', function () { if (uploader.files.length === (uploader.total.uploaded + uploader.total.failed)) { // $('form')[0].submit(); alert("Form submitted"); } }); uploader.start(); } else { alert('You must queue at least one file.'); } return false; }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;div id="Testloader"&gt; &lt;/div&gt; &lt;input type="submit" value="send" /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload