File Uploader by Uploadcare widget: Allow only local files

  • DreamCalisthenics
    Asked on February 5, 2018 at 1:51 AM

    How do I get the UploadCare widget to only allow upload images (ID cards size) only from local sources?

  • BJoanna
    Replied on February 5, 2018 at 6:28 AM

    As far as I could see there is not an option to allow only local sources inside of the widget settings. 

    I will raise this to our developers to see if this can be implemented. However, we can not provide you the exact time when and if this will be implemented. If there is any update we will inform you via this thread. 

    For now, I can only suggest you to hide the other options with CSS. To achive that add this CSS code to the Custom CSS field of the File Uploader by Uploadcare:

    .uploadcare--file-sources {

        display: none!important;

    }

    .uploadcare--menu__toggle {

        display: none!important;

    }

    1517830000widget Screenshot 10

    Here is my demo form: https://form.jotform.com/80352811340951 

    Feel free to test it and clone it

  • BJoanna
    Replied on February 5, 2018 at 10:56 AM

    I checked the documentation of the Uploadcare widget and it is already possible to allow only local files. 

    https://uploadcare.com/docs/uploads/widget/upload_sources/ 

    To achieve that add this code inside of the Additional Global settings of the Uploadcare widget:

    UPLOADCARE_TABS = 'file';

    1517846018upload Screenshot 10

    Here is my demo form: https://form.jotform.com/80353168340957 

  • Ben
    Replied on February 5, 2018 at 6:58 PM

    Thanks for being able to provide the answer. I haven't found the UploadCare support documentation to be easy to find or very elaborate.

    Thanks for your help!