Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Javascript (http://siteownersforums.com/forumdisplay.php?f=24)
-   -   Help with dropzone.zs (http://siteownersforums.com/showthread.php?t=151982)

george.web13 02-07-2015 12:45 PM

Help with dropzone.zs
 
I have this problem using dropzone.js for uploading files with drag&drop.

Lets say i have this form:

"" enctype=""multipart/form-data"" class=""dropzone"" id=""dropzone1"">







The javascript for the dropzone call is :



And in php section:
if (!empty($_FILES)) {

$somevalue=$_POST['somevalue'];
$counter=1;

$image=$_FILES['file-image']['name']);
$picture_in = ""/PicsUrl/"".$somevalues.$counter.$image;
move_uploaded_file($_FILES['file-image']['tmp_name'], $picture_in);

$counter++;
}
?>

I want to do this :

With the $somevalue posted, all the files that i upload simultanously,
to be renamed like that:

$somevalue_1_imagefilename
$somevalue_2_imagefilename
$somevalue_3_imagefilename

etc....

Any help ?


All times are GMT -7. The time now is 04:37 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.