How to filter-out images beyond certain size before the upload?
Hey there. I'm having a trouble with restricting the size of images before the upload. I am using Next.js framework and JavaScript. My api
core.js
code:
When I upload the image it manages to get uploaded even if it is larger in size than 1MB, despite my maxFileSize: "1MB"
. Can someone tell me how to ensure that the size restriction applies?
Many thanks!0 Replies