Drag and Drop Upload widget: Data is not sent correctly to webhook when form is used on mobile device.

  • jonathanvdb
    Asked on January 18, 2018 at 11:01 AM

    When i add a drag and drop upload widget to a form, then fill the form on mobile, and send it, it doesn't include the image/widget in the request it sends to the webhook.

    When I fill the form on a desktop, it does add the image to the request

    To me it seems like the widget should add the image to the request as well on mobile.

    Is there a way to make this happen?

    see the screenshot for clarification

    Jotform Thread 1353580 Screenshot
  • Ashwin JotForm Support
    Replied on January 18, 2018 at 12:13 PM

    We would like to test this issue before we can report it to our backend team. I would suggest you to please share the complete response data and we will take a look. You can use RequestBin and share the details with us. Accordingly we will report it to our backend team.

    We will wait for your response.

  • jonathanvdb
    Replied on January 22, 2018 at 7:23 AM

    I have created a requestbin, the first response was made on desktop, and te second on mobile.

    https://requestb.in/1kn82ef1?inspect


    The image is visible when i view the responses on the jotform website but it's not present in the webhook data.

  • jonathanvdb
    Replied on January 22, 2018 at 7:45 AM

    I have created a requestbin, the first response was made on desktop, and te second on mobile.

    https://requestb.in/1kn82ef1?inspect


    The image is visible when i view the responses on the jotform website but it's not present in the webhook data.

  • Ashwin JotForm Support
    Replied on January 22, 2018 at 10:40 AM

    I did check the requestbin data and it does include the upload image file. Please note that "Drag & Drop Upload" widget is displayed correctly on desktop but when you access it from mobile devices, it defaults to a regular file upload field and that is the reason it is not included in the POST data. I believe that is the issue you are having.

  • jonathanvdb
    Replied on January 23, 2018 at 8:34 AM

    So would it be possible to include the POST data in a regular file upload field?

  • Ashwin JotForm Support
    Replied on January 23, 2018 at 9:48 AM

    Please note that if the widget is not visible in form (mobile device), it can't be added in the POST data. But, the POST data does include the uploaded file in the requestbin URL you have shared. Can you please explain what exactly you want to be added in POST data?

    We will wait for your response.

  • jonathanvdb
    Replied on January 25, 2018 at 10:05 AM

    I would like the regular upload field to behave like the drag&drop widget.

    So the files that are uploaded with the regular upload field are included in the POST data as well, since we want to be able to use the form on mobile devices as well.

  • David JotForm Support
    Replied on January 25, 2018 at 11:13 AM

    In this case it might be necessary to use a regular file upload field due to how the drag and drop widget functions.  I believe the POST data from the regular file upload field should be included when submitting on both mobile and desktop.

  • jonathanvdb
    Replied on January 26, 2018 at 3:18 AM

    But the regular file upload field does not have the option to set a unique name, which we need for our webhook to function.

    Would it be possible to have the option of setting a unique name on a regular file upload field?

  • Ashwin JotForm Support
    Replied on January 26, 2018 at 5:16 AM

    In Drag & Drop widget, the uploaded file name is renamed and a unique code is added in the file name. Unfortunately it is not possible to rename or make the uploaded file name unique in regular file upload file.