DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Multiple file upload  
DwZone Forum Index -> Multiple file upload

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 101 to 110 of 195 (Total: 181) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: Upload Failing  
View this persons public profile  Gianluigi   11:37 23 Jul 2011  
    Re: Upload Failing  
View this persons public profile  Paul   21:31 26 Jul 2011  
 
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>


 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: Upload Failing  
View this persons public profile  Gianluigi   1:38 31 Jul 2011  
   Re: Upload Failing  
View this persons public profile  Paul   7:31 2 Aug 2011  
   recupero nome file  
View this persons public profile  ivanpalumbo   3:26 7 Jul 2011  
   Re: recupero nome file  
View this persons public profile  ivanpalumbo   4:08 7 Jul 2011  
   Re: recupero nome file  
View this persons public profile  Gianluigi   9:19 7 Jul 2011  
   Re: recupero nome file  
View this persons public profile  ivanpalumbo   9:55 7 Jul 2011  
   Re: recupero nome file  
View this persons public profile  Gianluigi   10:23 7 Jul 2011  
   Re: recupero nome file  
View this persons public profile  ivanpalumbo   10:40 7 Jul 2011  
Last Visit: Wednesday 8 Jan, 2025 10:29 pm First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-1

Jump to: