filestack-js icon indicating copy to clipboard operation
filestack-js copied to clipboard

maxSize doesn't provide a user error message

Open jb08 opened this issue 3 years ago • 1 comments

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

  • 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

jb08 avatar Jul 11 '22 17:07 jb08

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

jb08 avatar Jul 11 '22 18:07 jb08