I mentioned the invalid file name ( "Thumb\0895_004_tn.jpg" ) because it was created by MultiUpload. I was uploading one file with the name "0895_004.jpg". In the setup I requested one thumbnail.
Below is the code from the page. Please let me know which parameters I should change or if there is any other information that would help me use this extension correctly.
<?php if (!isset($_SESSION)){ session_start(); } ?> <?php if($_POST['eventID'] == "") { $_POST['eventID']=999999; } ?> <?php function UploadPath() { $UploadFolder = substr(dirname(__FILE__),0,-9)."images/event_".$_POST['eventID']."/"; return $UploadFolder; } function TempPath() { $TempFolder = substr(dirname(__FILE__),0,-9)."upload_log/"; return $TempFolder; } ?> <?php //********************** // Multiple File Upload //********************** if("Void" != "Void"){ require_once("../Connections/Void.php"); } require_once("../dwzMultipleUpload/dwzMultiUpload.php"); ?> <?php //**************************** // http://www.DwZone-it.com // MultipleFileUpload // Version 1.0.2 //**************************** set_time_limit(5400); $dwzUpload_1 = new dwzMultiUpload(); $dwzUpload_1->SetInstance("1"); $dwzUpload_1->SetExtraInfo("Vista|_|5400|_|block|_|800,400|_|true|_|"); $dwzUpload_1->SetRedirectUrl("../index.html"); $dwzUpload_1->SetPath("UploadPath()|_|3"); $dwzUpload_1->SetTempPath("TempPath()|_|3"); $dwzUpload_1->TestEnvironment(); $dwzUpload_1->Init(); $dwzUpload_1->SetRootPath("../"); $dwzUpload_1->SetConnPar(@$hostname_Void, @$database_Void, @$username_Void, @$password_Void); $dwzUpload_1->SetTexts("<b>Upload Image Files</b>|_|Upload|_|Start upload files|_|Remove all|_|Remove queued files|_|Stop|_|Stop upload process|_|Total progress|_|Total file size|_|Uploaded size|_|Time elapsed|_|Time remaining|_|Total speed|_|Current speed"); $dwzUpload_1->SetMessages("The file cannot be removed|_|Upload in progress|_|Upload complete|_|Remove file from queue|_|SwfUpload not defined|_|No files selected|_|Upload complete with error|_|Total file size exceeds limit"); $dwzUpload_1->SetButtonParameters("/dwzMultipleUpload/Graphics/Vista/BrowseButton.png|_|110|_|20|_|Browse...|_|font-family:Arial, Helvetica, sans-serif;font-size:12px;font-weight:bold;|_|font-family:Arial, Helvetica, sans-serif;font-size:12px;font-weight:bold;color:#cccccc;|_|20|_|3"); $dwzUpload_1->SetOverwriteMode("0"); $dwzUpload_1->SetAllowedExtensions("*.jpg|_|*.jpeg"); $dwzUpload_1->SetAllowedExtensionsDescription("Jpg Images|_|Jpeg Images"); $dwzUpload_1->SetSizes("0,0,0"); $dwzUpload_1->SetInsertParameters("0|_||_||_||_|0|_||_||_||_||_||_||_||_|"); $dwzUpload_1->SetResizeParameters("0|_|1|_|1200|_|800|_|50|_|1|_|1|_|150|_|100|_|50|_|1|_|_tn|_|2|_|0|_||_||_|50|_|1|_|_small|_|2"); if($dwzUpload_1->IsPostBack()){ $dwzUpload_1->Save(); } //**************************** // MultipleFileUpload //**************************** ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php //**************************** // MultipleFileUpload //**************************** $dwzUpload_1->JsIncludes(); //**************************** // MultipleFileUpload //**************************** ?> <?php //**************************** // MultipleFileUpload //**************************** $dwzUpload_1->JsConstructor(); //**************************** // MultipleFileUpload //**************************** ?> <style type="text/css"> body { margin: 0px; padding: 0px; } #fileManager { width:800px; margin-right: auto; margin-left: auto; padding-top: 30px; } </style> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div id="fileManager"> <?php //**************************** // MultipleFileUpload //**************************** $dwzUpload_1->DomConstructor(); //**************************** // MultipleFileUpload //**************************** ?> </div> </body> </html>
|
|
|