Customization 'accept' attribute values of file input in upload widget.

Comments

3 comments

  • Avatar
    Aditi Madan

    Hi Andrei,

    You can use the `clientAllowedFormats` option in the upload widget and specify the video formats and that way it will only let the user upload video files. If you try and invoke the widget through input element it will eventually open the widget disregarding the accept parameter and the button element does not support accept type. You can either use resourceType or clientAllowedFormats.

    Regards,

    Aditi

     

    0
    Comment actions Permalink
  • Avatar
    Andrei

    Aditi, thanks for your suggestion.
    We're using `resourceType` video when configuring the upload widget and I was trying the `clientAllowedFormats` option as well. It is limiting uploading however it is used by API for validation.

    It would be nice to have an option to control the `accept` option on file input. In addition to the existing options for Look and feel customization it would improve UX.
    Any chance of having an additional parameter for this purpose in the future?

    As an example, such parameter could support a comma-separated list of allowed file extensions or MIME types and be directly bind to input (Browse button)

    0
    Comment actions Permalink
  • Avatar
    Aditi Madan

    Hi Andrei,

    I will raise a feature request with our product team to consider adding this in the future. As of now, we have the options that I shared earlier with you.

    Regards,
    Aditi

    1
    Comment actions Permalink

Please sign in to leave a comment.