chanced / filedrop-svelte

File dropzone for Svelte.
MIT License
110 stars 12 forks source link

Incorrect error code thrown with FileSizeLimitExceededError #7

Closed Antosik closed 2 years ago

Antosik commented 2 years ago

Hi!

I found that FileSizeLimitExceededError exception contains incorrect ErrorCode - FileSizeMinimumNotMet instead of FileSizeMaximumExceeded

Please, check it out: https://github.com/chanced/filedrop-svelte/blob/bae3e5f25dbd2cee2dcbd6d8b35e35bfba0c0db7/src/lib/errors.ts#L56-L64

chanced commented 2 years ago

sorry about that! this was resolved and pushed as version0.1.2