Uploading a file via a jotform...

  • Profile Image
    juanflowers
    Asked on March 31, 2011 at 07:27 PM

    Hello.

    When uploading a file with an invalid file format, is there a way to have the form refresh without giving a person an error message which doesn't give a user a way to go back to add the correct file and submit it?

    Thanks in advance!

  • Profile Image
    allanftd
    Answered on April 01, 2011 at 06:16 AM

    Hi Juanflowers,

    If a visitor accidentally tries to upload a file with invalid format, JotForm will show the following message on the same page:

    The visitor will not need to refresh, s/he will just click Choose File again to select another file.

    Please let us know if you need further assistance. Thank you for using JotForm!

    JOTFORM SUPPORT

  • Profile Image
    juanflowers
    Answered on April 01, 2011 at 09:17 PM

    Hello Allanftd.

    I agree that this is what a client should see.  I just tested this with different web browsers and it only seems to be a problem when you browse our form using Microsoft Internet Explorer version 8 and 9. Mozilla Firefox, Google Chrome, and Opera work, as expected.  It seems that the File Upload Form Control doesn't give the expected behavior in IE 8/9 as you have displayed in your previous response.

    Please advise on how we can resolve this issue when a client uses Microsoft Internet Explorer 8 or 9 to submit an ad in our form. Again, I've placed a shortcut link as an invalid file but, I don't see the "red warning" saying that this file is invalid.

    In advance, thanks.

    Regards,

    JF

  • Profile Image
    NeilVicente
    Answered on April 01, 2011 at 11:29 PM

    Hi,

    This looks like a bug in the form's script. I tested another upload form using IE and I got the same problems as you did. I will forward this issue to our develepors so that they can fix this as soon as possible.

    You do not have to worry though about files that are not allowed being uploaded. Jotform blocks submissions like that.

    Thank you for bringing this to our attention.

     

    Neil

  • Profile Image
    serkan
    Answered on April 14, 2011 at 10:55 AM

    @juanflowers This is actually not a bug. What allows us to check file attributes in real time is a browser feature called FILE API which only modern browsers have. Unfortunetelly, Internet Explorer does not support this feature but in the latest versions of IE it will work just fine.

  • Profile Image
    juanflowers
    Answered on April 17, 2011 at 06:08 PM

    @serkan - Thank you for your reply.  

    As mentioned earlier by one of your colleagues (NeilVicente), this issue seems to be a bug when using the file upload component in a form and then viewing the form within Microsoft Internet Explorer 7.0, 8.0, and/or 9.0 (which is the latest).  Again, I concur with you and others that it should just work in the latest versions of Microsoft Internet Explorer but, it doesn't.

    Please check into this issue further because we cannot keep telling IE users to "Please install 'another' web browser to make this work correctly."  Using FF, Chrome, or Opera is a short-term workaround but, it is not a long term solution.

    Again, thank you for your assistance.