What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Filepicker Integration - Extensions/Mimetype Problem Preventing Photo Uploads

    Asked by markashton 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: http://form.jotform.co/form/32253472194857

    Notice that the camera button is not there ...

    So, Filepicker documentation states ..... :

    https://developers.inkfilepicker.com/docs/web/#pick

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

    Mimetype

    {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

    {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

    Bug Report problem uploads JotForm style Mobile
  • Profile Image

    Answered by EliezerN 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.

    Thanks

  • Profile Image
    JotForm Support

    Answered by kenneth 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.
    -Kenneth 

  • Profile Image

    Answered by markashton on August 14, 2013 at 02:45 PM

    Ken,

    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
    JotForm Support

    Answered by Mike_T 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
    JotForm Support

    Answered by kenneth 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.

    Thanks,
    Kenneth 

  • Profile Image

    Answered by markashton 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 ;-)

    Thanks

    Regards Mark

  • Profile Image
    JotForm Support

    Answered by kenneth on August 15, 2013 at 11:42 AM

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

    -Kenneth