filestack / filestack-js

Official Javascript SDK for the Filestack API and content ingestion system.
https://www.filestack.com
MIT License
206 stars 78 forks source link

maxSize doesn't provide a user error message #484

Open jb08 opened 2 years ago

jb08 commented 2 years ago

Expected Behavior

When I set my maxSize as 30MB (maxSize: 31457280), and I upload a 27M file, I expect it to succeed. When I set my maxSize as 10MB (maxSize: 10485760), and I upload a 27M file, I expect it show the user an error message. Instead it just doesn't accept the file, but it's not clear why.

Current Behavior

I expect the user to receive an error message.

Possible Solution

Provide the user the reason why the file isn't being uploaded to the filePicker.

Additional Screenshots

filesize < MaxSize

Screen Shot 2022-07-11 at 11 41 07 AM

filesize < MaxSize (Error message would be helpful)

Screen Shot 2022-07-11 at 11 47 01 AM

Context

I have a product ticket to provide this error message, and it would be nice if Filestack provided this.

Your Environment

jb08 commented 2 years ago

edit: now see duplicate of https://github.com/filestack/filestack-js/issues/335