Jaaneek / useFilePicker

Simple react hook to open browser file selector.

Home Page:https://use-file-picker.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImageDims not triggering errors.

drinikol opened this issue · comments

I tried setting up a limit for the thumbnail image but it doesn't throw and error. Error array is always empty even uploading different dimensions of image. Am I doing something wrong or this is a bug? Thank you!
const [ openFileSelectorThumbnail, thumbnailData ] = useFilePicker({ multiple: false, readAs: "DataURL", accept: [".jpg", ".jpeg"], maxImageHeight: 720, minImageHeight: 720, maxImageWidth: 1280, minImageWidth: 1280 });

fixed in #19