Classic Forms/File Upload Fields: Photos taken using the camera are repeating on all the upload fields on the form while using iOS.

  • Profile Image
    jgroover
    Asked on March 29, 2018 at 07:36 PM

    Hi JotForm,

    Looks like the "image.jpg" File Upload bug was never fixed for uploads coming from an iPhone. See my attached photos for a survey that was done today.

    Is there a workaround that you can suggest?

  • Profile Image
    Kevin_G
    Answered on March 29, 2018 at 11:05 PM

    I have been testing this a bit and actually this seems like a bug on iOS, when you take the photo using a mobile device the device and the OS will rename the taken photo, on iPhone the file is renamed exactly the same on the multiple file uploads, this may be generating the conflict showing up the same image on all the fields. To verify this I have created a simple HTML page with HTML 5 file upload fields and tested it on an iPhone emulator, the issue happens there as well in order to make sure  it's not related to JotForm: 

    1522378874screenshot_01.png

    I then tested a JotForm form with multiple file upload fields on an Android device and it seems to set different names to the taken photos: 

    1522378959mobile.png

    Unfortunately, this is something that cannot be controlled by JotForm so it would be a bit hard to handle that. Alternatively, you may use a widget for that, please find our file uploads widgets here: https://widgets.jotform.com/category/file_upload 

    This guide will help adding the widget to your form: https://www.jotform.com/help/252-How-to-Add-a-Widget-to-Your-Form 

    Also, as shown on my screenshots I used the single upload field, but the same happens when allowing multiple uploads. 

    I hope this info helps. 

  • Profile Image
    jgroover
    Answered on March 30, 2018 at 01:41 PM

    Kevin,

    Thanks for providing some direction here. Do using widgets somehow circumvent the problem? Unfortunately, many of my surveyors will be using an iOS mobile device.

  • Profile Image
    Richie_P
    Answered on March 30, 2018 at 02:08 PM

    I have tested Image Upload Preview Widget and this fixes the issue with changing orientation on IOS mobile devices.

    Here is my sample submission using my IOS mobile device with the widget.

    Please give it a try and let us know how it goes.


  • Profile Image
    jgroover
    Answered on March 30, 2018 at 04:26 PM

    Hi Richie,

    I'm not too concerned with orientation, but thanks for looking into that.

    Have you tested if it fixes the "image.jpg" iOS bug where that image overwrites other uploads, resulting in the image showing up for multiple unique File Upload questions?

    This was my original concern in the screencap of the survey response above. Each of those photos in the screencap should have been different files, but they all defaulted to the same "image.jpg" file.

  • Profile Image
    jonathan
    Answered on March 30, 2018 at 08:14 PM

    I could not properly troubleshoot the "image" iOS upload issue you described because I do not have the iOS device to test.

    I will relay this instead to another support. We will update you here as soon as we can.

  • Profile Image
    jgroover
    Answered on May 02, 2018 at 07:17 PM

    Hi All,

    This error keeps persisting in such a uniform manner that it leads me to believe that something can be changed within the survey itself to get rid of it.

    The continuity here is the image that gets repeated. It's always the image/question where the surveyor is asked to upload a photo of the store entrance.

    Please feel free to review some submissions here for confirmation:

    https://drive.google.com/open?id=1571w5w9VUg6Zs3ysN0MCHhEgZyl4MCMW

    Every folder with "image error" in the filename has the same duplication present.

  • Profile Image
    Kevin_G
    Answered on May 02, 2018 at 09:38 PM

    I have been testing this further on my end using a device emulator and even using iOS I cannot replicate the issue now on my end, it seems like the taken photos are renamed in order to avoid conflicts, example: 

    - I have used basic upload fields, multiple upload fields and image upload preview widgets: 

    1525310792screenshot_01.png

    I will forward this to our second level in order to see if there is anything our developers can do about this, we will keep you posted via this thread. 

    Thanks. 

  • Profile Image
    jgroover
    Answered on May 03, 2018 at 11:07 AM

    Perhaps if I make all file upload questions able to have multiple submissions, then it will circumvent the issue? Even if 1 file is uploaded.

    I'll try this out tonight. Any thoughts?

  • Profile Image
    Richie_P
    Answered on May 03, 2018 at 11:58 AM

     I tried enabling multiple file uploads option and the File upload element would create a different file name on each file uploads.

    Here is my screenshot:

    I tried also disabling the multiple file uploads and in the email notification the image names are given a unique names.

    Here is a screenshot.

    Please give it a try and let us know how it goes.


  • Profile Image
    jgroover
    Answered on May 03, 2018 at 07:36 PM

    Richie,

    We noticed that the error would only occur if the surveyor used the "Take Photo or Video" option, which allows them to take the photo on the spot. If they took the photo outside of the survey, then went back into the survey and uploaded from the "Photo Library", then the photo would be renamed into a long alphanumeric string like you've shown above.

    See the opening warning message on my survey if you don't understand what I mean.

    Can you confirm if you're uploading from "Take Photo" or "Photo Library"?

  • Profile Image
    Welvin
    Answered on May 03, 2018 at 09:39 PM

    I have tested this with iPhone 6+ IOS 11. If you check your submissions, you'll see that the images are written correctly. I choose the Take Photo or Video on my IOS device.

    Anyways, this is already forwarded to our developer. We'll keep you posted for updates. In case you also wonder, I added ?ignoreValidation=true in the form URL to skip required fields. Feel free to do the same to test the form to your end. 

  • Profile Image
    Welvin
    Answered on May 03, 2018 at 09:44 PM

    To investigate further, this looks like an issue on a specific iPhone model. If you happen to know the model your form users are using to submit the form, please let us know. We'll try to test further using the same model. 

  • Profile Image
    jgroover
    Answered on May 07, 2018 at 01:40 PM

    All iPhones from at least 6 and up give us the image duplications ONLY IF we upload using the "Take Photo" button. We circumvent the problem by taking the photo outside of the survey, and then uploading from "Photo Library".

    However, we've seen some iPad submissions that still have duplications even after uploading from Photo Library. I believe these were Gen 3 iPad Pros.

  • Profile Image
    Richie_P
    Answered on May 07, 2018 at 02:29 PM

    I tested your form again using my iPhone 7 IOS 11 and choose to Take Photo but I still, I can't seem to replicate the issue.

    Screenshot from the email notification.

    From the submission page.

    Although, I haven't tried it yet on an IPad, but will take note on this.

    I'll ask the developer assigned also for an update. We will let you you know via this thread if updates are available.

    Thank you.



  • Profile Image
    jgroover
    Answered on May 07, 2018 at 09:28 PM

    Are you running it from Safari or a different browser?

    Also, 1 out of 4 of those answers defaulted to "image.jpg". What happens when you increase the sample size? Out of roughly 40 photo submissions in our survey, about 10-15 end up as "image.jpg" duplications.

  • Profile Image
    Kiran
    Answered on May 08, 2018 at 12:44 AM

    I'll let our colleague @Richie_P to respond your query and test it further since I do not have iPhone to test.

    Thank you for your patience and understanding. 

  • Profile Image
    Richie_P
    Answered on May 08, 2018 at 10:03 AM

    Hi jgroover, I'm using Safari in my iPhone 7. I'll get back to you on this with a greater sample size. You could also test my cloned form, see if the issue still persists.

    Cloned Form URL:https://form.jotform.com/81265950538968

    Thank you.

  • Profile Image
    jgroover
    Answered on May 08, 2018 at 12:03 PM

    Richie,

    Still getting the errors on your form on iPhone 8, iOS 11.3.1. See below.

    Additionally, we got about halfway through the survey and started getting Failed image uploads. And your survey kicks us out upon submitting, but perhaps that's because you're currently making edits to it.

    1525795403survey1.jpg1525795412survey2.jpg

  • Profile Image
    Richie_P
    Answered on May 08, 2018 at 12:37 PM

    I have tested my cloned form again using my iPhone 7 IOS 11.3.1 and although the picture names are "image" for all the photos I have taken using the multiple uploads

    the photos I received  in the submissions doesn't overlap to each other.

    I have made my submission public, you can check this link https://www.jotform.com/submissions/81265950538968 and use "test" as the password.

    Although, the cloned form is working at my end, I might have missed something and we should wait for the developer assigned for his input.

    Thank you.