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

Comments

8 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
  • Avatar
    Ed

    Has there been any progress on this? Seems basic to improve the UX of the this section

    0
    Comment actions Permalink
  • Avatar
    Eyal Katz Talmon

    Hey Ed! Thanks for reaching out.

    The feature request is still being considered and prioritized against other tasks, and therefore, unfortunately, there wasn't any progress made so far. We'll update this thread about any progress made in the future.

    Regards,

    Eyal

    1
    Comment actions Permalink
  • Avatar
    Ed

    Just adding to this. Is there any way I could get access to the input from a query selector? So far it seems not possible due to the iframe being from a different origin. Or is there a way to get the widget codebase so I can make the changes myself?

    0
    Comment actions Permalink
  • Avatar
    Michal Kuperman

    Hi Ed,

    Currently, there is no option to access the input from a query selector or to get the widget codebase. 

    Let us know if you need any further assistance.

    0
    Comment actions Permalink
  • Avatar
    Aditi Madan

    Hi Andrei and Ed,

    I just wanted to let you know that this issue is fixed now. You should be able to use the `accept` attribute with the upload widget.

    Please test and let me know if you have any questions.

    Regards,

    Aditi

    1
    Comment actions Permalink

Please sign in to leave a comment.