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 141 to 148 of 148 (Total: 146) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: Save only the file name in the database  
View this persons public profile  Gianluigi   9:55 20 Apr 2015  
   upload type  
View this persons public profile  PaulMaher   16:57 3 Mar 2015  
   Re: upload type  
View this persons public profile  Gianluigi   0:03 4 Mar 2015  
   tutorial for ths function  
View this persons public profile  Allan   22:47 10 Feb 2015  
   Re: tutorial for ths function  
View this persons public profile  Allan   8:09 11 Feb 2015  
   Re: tutorial for ths function  
View this persons public profile  Gianluigi   9:54 11 Feb 2015  
    Problem with dynamic Upload Folder  
View this persons public profile  MDS   7:05 10 Apr 2014  
 
Hello,
I install the tool and it works very well.

Now i must upload the Dokuments into a dynamic path.
For this Path I use two Parameters and write it into a Variable.
But i dont know, where I can put this Variable.

My code:

//******Get variable for the Path
<?php
$jahr = "-1";
if (isset($_GET['jahr'])) {
$jahr = $_GET['jahr'];
}
$nr = "-1";
if (isset($_GET['nr'])) {
$nr = $_GET['nr'];
}
$myUploadFolder = "../DOKS/$jahr/$nr/";
?>
//*****End Path-variable

<?php
//****************************
// http://www.DwZone-it.com
// MultipleFileUpload
// Version 1.0.15
//****************************
set_time_limit(5400);
$dwzUpload_1 = new dwzMultiUpload();
$dwzUpload_1->SetInstance("1");
$dwzUpload_1->SetExtraInfo("Vista|_|5400|_|block|_|500,150|_|false|_|");
$dwzUpload_1->SetRedirectUrl("");
$dwzUpload_1->SetPath($myUploadFolder); //*******My Path-Variable
$dwzUpload_1->SetTempPath("../DOKS/temp|_|1");


But it does not work.

How can I fix the Problem?
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: Problem with dynamic Upload Folder  
View this persons public profile  Gianluigi   10:04 10 Apr 2014  
Last Visit: Thursday 28 Mar, 2024 5:48 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: