Filepicker Integration - Extensions/Mimetype Problem Preventing Photo Uploads

  • Profile Image
    Asked on August 14, 2013 at 10:35 AM

    EDIT: This problem is solved ... the solution is simple ... add a wildcard symbol * to the Extensions field and the camera button in filepicker mobile dialog will be there. My fault for not being more diagnostic.

    On a smartphone ... the camera button in the Filepicker mobile dialog has disappeared.

    I advise my client for his photo surveys that people should press the camera button on the filepicker interface.

    But, there has been a change to the filepicker integration ... that has f****d this up. What is it? 

    For the filepicker field ... General settings > Extensions > 

    You seem to have added a load of file types .... if i delete these then the resulting 'Click To Edit' ... the camera button is displayed. But ... it keeps resulting back to the list of file types ... and the camera button is not displayed.

    So, the change that you implemented ... you didn't test did you? And as a result I'mpaying for it ... BIG TIME ... today. Sorry, this assumes that you have made a change - maybe it was filepicker ... please clarify

    Take an Iphone ... test filepicker with this form:

    Notice that the camera button is not there ...

    So, Filepicker documentation states ..... :

    An optional dictionary of key-value pairs that specify how the picker behaves:


    {mimetype: 'image/*'}

    {mimetypes: ['image/*', 'text/*',…]}

    Specify the type of file that the user is allowed to pick. For example, if you wanted images, specify image/* and users will only be able to select images to upload. Similarly, you could specifyapplication/msword for only Word Documents.

    You can also specify an array of mimetypes to allow the user to select a file from any of the given types.


    {extension: '.pdf'}

    {extensions: ['.js', '.coffee',…]}

    Specify the type of file that the user is allowed to pick by extension. Don't use this option with mimetype(s) specified as well

    You can also specify an array of extensions to allow the user to select a file from any of the given types.

    ---------- END --------------------------

    Is this the problem ??

    Regards Mark

  • Profile Image
    Answered on August 14, 2013 at 01:42 PM

    I have noticed that you already figured it out. As far as I Know we have not implemented any changes to the Filepicker integration recently. Hopefully you will not continue having issues with this, but if you do, don't hesitate to contact us.


  • Profile Image
    Answered on August 14, 2013 at 02:05 PM

    Hey mark, its not a bug actually.

    It happens in filepicker. Camera and Video needs certain extensions to make them appear, if none was set they will be automatically remove on the dialog which is done by the filepicker server.

    For example if you put just one extension there ".jpg" the camera button will work as this one associates with the Camera, same with the video (mp4, flv, mov, etc ). Thats why putting the "*"(all extension) make them work right?
    Well because that is the default value before( you can select all type of files ) we decided to add the extension property to only allow certain files.

    We won't use mimetypes at the moment ( dont ask why ). We will implement it soon so be patience please. At the moment put the accepted extensions to take images files.

    Thanks for reporting this one.

  • Profile Image
    Answered on August 14, 2013 at 02:45 PM


    I think you need to check this. Just do a test form ... add filepicker ... and leave as default.

    I think the camera button will be missing even though the appropriate files are set in the extensions field!

    Of course ... I know the workaround ... so I'm covered but I would advise you to check this for other jotform users.

    Excuse me if I am mistaken ... but I had trouble with this today ... and was looking at the extensions in the properties dialog box

    Thanks mark

  • Profile Image
    Answered on August 14, 2013 at 03:49 PM

    We have reproduced this, so I believe that Kenneth will be able to fix that tomorrow.

    Thank you.

  • Profile Image
    Answered on August 15, 2013 at 04:20 AM

    We have removed the extensions property of the InkFilePicker.
    Mimetypes is much better so we override it, it also helps to prevent the problems that you just encountered.

    To set mimetypes, set them similar on setting extensions before. Separate it with comma. Read the Note: For example this:

    If you want to allow "png" images then use image/png, the wildcard is used to allow type of all images image/*. To allow all types of mimetypes put wilcard on both sides */*

    Again, be sure that the mimetypes you specified must be compatible with the services integrated.
    For example: CAMERA, FACEBOOK, INSTA requires the image mimetypes, video mimetype for VIDEO service and so on.

    Please test it and confirm if it works from your side.


  • Profile Image
    Answered on August 15, 2013 at 04:58 AM

    This looks good.

    Initial test shows it works

    I'll come back on this thread if I encounter any problems

    Have made this public. Will be usful to the hordes ;-)


    Regards Mark

  • Profile Image
    Answered on August 15, 2013 at 11:42 AM

    Thanks mark, if you encountered any problems. Let us know