How to handle both "image/x-icon" and "image/vnd.microsoft.icon"

This thing has been driving me crazy, how do you guys validate or limit accepts here? Do i really need to create a custom button / dropzone for it?
Solution:
found out how to do it, my syntax was just wrong correct way: ```...
Jump to solution
1 Reply
Solution
markr
markr2mo ago
found out how to do it, my syntax was just wrong correct way:
f({
"image/x-icon": { maxFileSize: "32KB", maxFileCount: 1 },
"image/vnd.microsoft.icon": { maxFileSize: "32KB", maxFileCount: 1 },
}).middlewre...
f({
"image/x-icon": { maxFileSize: "32KB", maxFileCount: 1 },
"image/vnd.microsoft.icon": { maxFileSize: "32KB", maxFileCount: 1 },
}).middlewre...

Did you find this page helpful?