freshworks / crayons

🖍️ Crayons - A UI Kit comprising of web components for building Freshworks Apps!
https://crayons.freshworks.com
219 stars 61 forks source link

[Bug] - No restrictions in file uploader #864

Open drcoolsanjeev opened 1 year ago

drcoolsanjeev commented 1 year ago

Component FwFileUploader

Describe the bug After providing ".jpg" as accept props, we are able to upload file of any type. So there is no restrictions of file type provide by default as in plain html input field.

To Reproduce Steps to reproduce the current behaviour:

  1. Go to https://moonlit-rabanadas-0f0022.netlify.app/components/core/file-uploader/#properties
  2. Click on Upload file able to select file type as any.

Expected behaviour The selection should be restricted based on accept props value.