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 51 to 60 of 148 (Total: 146) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: Buttons and progress bar not showing  
View this persons public profile  Joe   6:43 29 Jan 2018  
   Re: Buttons and progress bar not showing  
View this persons public profile  Gianluigi   4:31 3 Feb 2018  
   Error 500 with png files only  
View this persons public profile  ChristosChristou   10:33 14 Oct 2017  
   Re: Error 500 with png files only  
View this persons public profile  Gianluigi   10:35 14 Oct 2017  
   error when save  
View this persons public profile  Ulises   12:28 6 Oct 2017  
   Re: error when save  
View this persons public profile  Gianluigi   14:17 6 Oct 2017  
   Not creating thumbnail images  
View this persons public profile  Gary   10:39 23 May 2017  
   Re: Not creating thumbnail images  
View this persons public profile  Gianluigi   12:18 25 May 2017  
    Upload to Dynamic Path  
View this persons public profile  Garry Fraser   4:02 10 Jun 2016  
 
I'm looking to update an old dynamic site used on intranet (currently upload is being done by ADDT)

I can't get dynamic path to work, code is as follows

<?php
function CreateUploadPath(){
// $_SESSION['folder']
$YourUploadFolder = ("../../database/sales/quotations/E" . $_GET['quote'] . "/images/");
return $YourUploadFolder;
}

echo CreateUploadPath()

?>
<?php
//****************************
// http://www.DwZone-it.com
// MultipleFileUpload HTML 5
// Version 1.0.34
//****************************
set_time_limit(5400);
$dwzUpload_1 = new dwzMultiUpload();
$dwzUpload_1->SetUploadType("HTML5");
$dwzUpload_1->SetInstance("1");
$dwzUpload_1->SetExtraInfo("Bootstrap,Default|_|5400|_|false,80,80|_|600,250|_|true|_|form1@__@qu_date@__@INPUT,form1@__@qu_number@__@hidden");
$dwzUpload_1->SetRedirectUrl("");
$dwzUpload_1->SetPath("CreateUploadPath()|_|3");
$dwzUpload_1->SetTempPath("/images/temp2/|_|1");
$dwzUpload_1->TestEnvironment();
$dwzUpload_1->Init();
$dwzUpload_1->SetRootPath("../../");
$dwzUpload_1->SetConnPar(@$hostname_Void, @$database_Void, @$username_Void, @$password_Void);
$dwzUpload_1->SetTexts("Add files...|_|Start upload|_|Cancel upload|_|Start|_|Cancel|_|Delete|_|Your browser does not support drag'n'd_r_o_p file uploads.|_|Please use the fallback form below to upload your files.|_|Invalid file type. Allowed file type: {{FilesType}}|_|The size of the file is {{filesize}}Mb but the max allowed file size is {{maxFilesize}}Mb|_|Connection error status code {{statusCode}}|_|Confirm remove the selected file.|_|The file cannot be uploaded. Cause file number limit.|_|Upload completed.");
$dwzUpload_1->SetOverwriteMode("0");
$dwzUpload_1->SetAllowedExtensions("*.gif|_|*.jpg|_|*.jpeg|_|*.png|_|*.bmp");
$dwzUpload_1->SetAllowedExtensionsDescription("Gif Images|_|Jpg Images|_|Jpeg Images|_|Png Images|_|Bmp 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 HTML 5
//****************************
?>

the echo includes the path correctly, i.e.
/quotations/E1234/images/
but on the server the 4 digit quote number doesn't happen and the folder created is just
/quotations/E/images/
 
Reply to this current thread  View this persons public profile  Send Private Message
   Saving only the file name instead of the complete path name  
View this persons public profile  Support   8:28 17 Feb 2016  
Last Visit: Monday 21 Apr, 2025 3:50 am 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-2

Jump to: