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 11 to 20 of 148 (Total: 146) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: Upload error (php)  
View this persons public profile  Gianluigi   13:24 4 Feb 2020  
   Re: Upload error (php)  
View this persons public profile  Daniel   9:17 5 Feb 2020  
   Re: Upload error (php)  
View this persons public profile  Gianluigi   9:22 5 Feb 2020  
   Re: Upload error (php)  
View this persons public profile  Daniel   10:00 5 Feb 2020  
   Re: Upload error (php)  
View this persons public profile  Gianluigi   10:05 5 Feb 2020  
   Re: Upload error (php)  
View this persons public profile  Daniel   10:25 5 Feb 2020  
   Re: Upload error (php)  
View this persons public profile  Gianluigi   12:04 5 Feb 2020  
   Re: Upload error (php)  
View this persons public profile  Gianluigi   11:27 16 Apr 2020  
    Dynamic Folder (PHP)  
View this persons public profile  Daniel   20:55 2 Feb 2020  
 
Hi, the folder in PHP version is not being created. I've tried several things but none work.

<?php
$subCATid = "../media/galeries/" . $_SESSION['subcatID'];
?>
<?php
function CreateUploadPath(){
$YourUploadFolder = $subCATid;
return $YourUploadFolder;
}
?>

<?php
//****************************
// http://www.DwZone-it.com
// MultipleFileUpload HTML 5
// Version 1.0.43
//****************************
set_time_limit(5400);
$dwzUpload_1 = new dwzMultiUpload();
$dwzUpload_1->SetUploadType("HTML5");
$dwzUpload_1->SetInstance("1");
$dwzUpload_1->SetExtraInfo("Bootstrap,Default|_|5400|_|true,100,100|_|500,500|_|true|_|insert_fotos_form_galeria@__@insert_SUBCATID@__@hidden");
$dwzUpload_1->SetRedirectUrl("fotos-insert.php");
$dwzUpload_1->SetPath("CreateUploadPath()|_|3");
$dwzUpload_1->SetTempPath("../media/galeries/temp|_|1");
$dwzUpload_1->TestEnvironment();
$dwzUpload_1->Init();
$dwzUpload_1->SetRootPath("../");
$dwzUpload_1->SetConnPar(@$hostname_PowerCMSConnection, @$database_PowerCMSConnection, @$username_PowerCMSConnection, @$password_PowerCMSConnection);
$dwzUpload_1->SetTexts("AƱadir archivos...|_|Iniciar carga|_|Cancelar carga|_|Iniciar|_|Cancelar|_|Eliminar|_|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("1");
$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("1|_|insert_fotos_form_galeria|_|fotos|_|insert_SUBCATID@_@fotosSUBCATID@_@Integer@_@N@_@@_@@_@@_@@_@@_@|_|1|_|fotos|_||_||_|fotosADD|_||_||_||_||_||_|2|_|");
$dwzUpload_1->SetResizeParameters("0|_|1|_|1920|_|1080|_|80|_|1|_|1|_|200|_|200|_|80|_|1|_|_m|_|2|_|0|_||_||_|80|_|1|_|_s|_|2");
if($dwzUpload_1->IsPostBack()){
$dwzUpload_1->Save();
}
//****************************
// MultipleFileUpload HTML 5
//****************************
?>
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: Dynamic Folder (PHP)  
View this persons public profile  Gianluigi   9:15 3 Feb 2020  
Last Visit: Saturday 20 Apr, 2024 5:59 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: