preferredTypes not working
luisrudge opened this issue · comments
Hi @luisrudge, sorry for such a long delay with the response! The preferredTypes
option implements different functionality. It tells social/cloud services APIs which file formats you'd like to receive. For example, by default, Google Drive API returns documents in PDF format, but with this option, you can force it to returns XLSX/DOCX instead.
In order to hide unwanted file types in the system dialog, use the inputAcceptTypes
option. Note that it affects only local files, and users still can disable the filter and select any file. To prevent uploading files of unwanted type, size, etc. use file validation.