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 //**************************** ?> |
|
|