vue-upload-component icon indicating copy to clipboard operation
vue-upload-component copied to clipboard

Doesn't handle errors before upload

Open douglasg14b opened this issue 6 years ago • 3 comments

Say I have the max file size as 10MB and I try and upload a file that's 100MB.

I do active = true and nothing occurs. No error/exceptions show up, and the file obj itself has no errors.

Shouldn't errors be assigned on a per-file basis for something like this? I see there is an error field, but it never seems to get set whenever there is an error before upload starts?

douglasg14b avatar Sep 03 '19 22:09 douglasg14b

It also doesn't pass request errors back to the caller. If the request ends with an error, the library just returns a Promise.reject('abort') instead of the real error...

douglasg14b avatar Sep 04 '19 00:09 douglasg14b

I'm having this same issue - where I have set the file size maximum, via the size prop, but the component is still allowing uploads greater than the limit. The extensions prop is also having no effect on limiting the types of files you can select. @douglasg14b did you figure this out?

jwilson-bm avatar Apr 28 '22 19:04 jwilson-bm

I did not. I dropped this library and just wrote my own uploader component.

douglasg14b avatar Apr 28 '22 22:04 douglasg14b