filestack-js
filestack-js copied to clipboard
maxSize doesn't provide a user error message
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

filesize < MaxSize (Error message would be helpful)

Context
I have a product ticket to provide this error message, and it would be nice if Filestack provided this.
Your Environment
- Version used: 3.3.5
- Browser Name and version: Chrome
- Operating System and version (desktop or mobile): Mac desktop 12.3.1
- Link to your project: N/A
edit: now see duplicate of https://github.com/filestack/filestack-js/issues/335