I am using Jquery Uploadify for images upload with PHP, here i want to upload multiple images in different folders i.e first image will upload into ‘folder1’ ,2nd image upload into ‘folder2’ and all these uploads should be done by single instance of uploadify. Is it possible or not??
Share
Yes, it is possible, but determining which is the first and which is the second file upload etc. is not entirely easy, because for each upload, a new
upload.phpinstance is called.I would consider passing a random key to the upload script using the
scriptDatasetting:and in the PHP script, use a session value to count which image the current one is:
$imageNumberwill then contain the number of the uploaded image, and you canmove_uploaded_file()the upload to the desired location.