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

  • Profile Image
    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

  • Profile Image
    ashwin_d
    Answered 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.

  • Profile Image
    jonathanvdb
    Answered on January 22, 2018 at 07: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.

  • Profile Image
    jonathanvdb
    Answered on January 22, 2018 at 07: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.

  • Profile Image
    ashwin_d
    Answered 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.

  • Profile Image
    jonathanvdb
    Answered on January 23, 2018 at 08:34 AM

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

  • Profile Image
    ashwin_d
    Answered on January 23, 2018 at 09: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.

  • Profile Image
    jonathanvdb
    Answered 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.

  • Profile Image
    david
    Answered 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.

  • Profile Image
    jonathanvdb
    Answered on January 26, 2018 at 03: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?

  • Profile Image
    ashwin_d
    Answered on January 26, 2018 at 05: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.