ExtJS Extension LastModified: September 10th 2008
The SwfUploadPanel widget is a control, where the user can pick mulitple files and upload them in a queue style fasion.
Current Version: 0.6
Uses SwfUpload v2.1.0
Released for ExtJS 2.2. Demo: See Below
Usage * Download ExtJS 2.x library * Download Ext.ux.SwfUploadPanel library * Unpack ExtJS library to a folder * Unpack Ext.ux.SwfUploadPanel.js.zip to s plugin folder for example and follow example! * I will try and document more when I have time.
View Forum Posts * http://extjs.com/forum/showthread.php?t=19082
Changelog * Ver.: 0.6 (beta) Mirgated to SwfUpload 2.1 * Ver.: 0.4 (beta) Migrated to SwfUpload 2.0.2 * Ver.: 0.3 (beta) Fixed the progress bar to be dynamic 100 - Fixed the postParam to work correctly now just past the (name, value) - added a few events so you can bind some listeners ie. swfUploadLoaded, fileUploadComplete, queueUploadComplete * Ver.: 0.2 (beta) Added Stop Upload, Remove Files from Queue * Ver.: 0.1 (beta) Basic MultiFile Upload FAQ: Q: I set everything up and the file select dialog does not open when I click Add Files? A: Double check to make sure the Flash swf path is correct. (In FireBug you will see: "Could not find Flash element" when the path is not right.) Q: The Dialog opens and the files show up but when I click upload it hangs up and nothing happens. A: The upload_url needs to be correct. From my testing it only works with absolute paths. So make sure you have the complete url. Q: SWFUpload is a Flash object and uses a different session from by browser window. How do I force the same. A: Look at the code for the first example and see how the session is sent from the cookie session. Thanks MD! (Note: This may not be the safest approach from session hijacking but the only solution I have at the moment.) PHP code to swap out with the browser session:
if ( (!empty($_REQUEST["PHPSESSID"]) && !empty($_REQUEST["PHPSESSIDX"]))
&& $_REQUEST["PHPSESSID"] != $_REQUEST["PHPSESSIDX"] ) {
$_REQUEST["PHPSESSID"] = $_REQUEST["PHPSESSIDX"];
unset($_REQUEST["PHPSESSIDX"]);
$_COOKIE["PHPSESSID"] = $_REQUEST["PHPSESSID"];
}
session_start();