Sorry for all the uploads. The forum was giving me error messages that indicated my post had failed.
I have tried uploading files without success both on my local and web servers. I have used relative paths for testing. Both the upload folder and the temp folder exist. Hopefully someone can help me figure out what I've done wrong. Ultimately, I need to have the extension create the necessary image folder dynamically.
Here's the code from my page. Nothing on it except the extension.
<?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("/images/event_2/|_|1"); $dwzUpload_1->SetTempPath("/upload_log/|_|1"); $dwzUpload_1->TestEnvironment(); $dwzUpload_1->Init(); $dwzUpload_1->SetRootPath(""); $dwzUpload_1->SetConnPar(@$hostname_Void, @$database_Void, @$username_Void, @$password_Void); $dwzUpload_1->SetTexts("<b>Multiple upload 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 exceed 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|_|0|_||_||_|80|_|1|_|0|_||_||_|80|_|1|_|_m|_|2|_|0|_||_||_|80|_|1|_|_s|_|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 //**************************** ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <?php //**************************** // MultipleFileUpload //**************************** $dwzUpload_1->JsConstructor(); //**************************** // MultipleFileUpload //**************************** ?> </head>
<body> <?php //**************************** // MultipleFileUpload //**************************** $dwzUpload_1->DomConstructor(); //**************************** // MultipleFileUpload //**************************** ?> </body> </html>
|
|
|