html - PHP : Joomla:- File upload issue issue in "iPhone devices" (Uploading the same image from different file upload fields) while working fine on desktop -


i facing issue on iphone devices (iphone 4, 5, 6 & ipad). have created page:

http://joomla.iworklab.com/aquadam_newtheme/index.php/rfq-construction-stage/constructionstageform

on page, there many file upload fields 3 file upload fields taken same image on iphone devices & others file uploads fields working fine. file upload fields, taken same image given below:

    <input type="file" name="jform[select_picture1_bt]" id="select_picture1_bt" accept="image/png,image/jpeg,image/gif,image/bmp,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document" aria-invalid="false">  <input type="file" name="jform[select_picture2_bt]" id="select_picture2_bt" accept="image/png,image/jpeg,image/gif,image/bmp,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document">  <input type="file" name="jform[select_picture3_bt]" id="select_picture3_bt" accept="image/png,image/jpeg,image/gif,image/bmp,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"> 

only these 3 fields uploading same image on server while remaining fields working fine.

i have attached snapshot of fields creating same image issue in iphone devices given below: enter image description here

& snapshot of remaining fields on same page, working fine on devices (including iphone) given below: enter image description here

please suggest anyone, how can fixed issue?

thanks in advance :)

i have got exact cause of issue:

"in iphone, file upload inputs automatically set image name 'image.jpg' when uploading image in same destination folder pointed same image."

hence final solution it, either use unique time stamp image name @ end of image upload (like: md5(microtime(true)), or md5(rand(true))) or use different destination name each image.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -