demarches-normaliennes/app/javascript/shared/activestorage
Pierre de La Morinerie 432967bd76 javascript: make Uploader always throw the same kind of errors
A DirectUpload may fail for several reasons, and return many types of
errors (string, xhr response, Error objects, etc).

For convenience, wrap all these errors in a FileUploadError object.

- It makes easier for clients of the Uploader class to handle errors;
- It allows to propagate the error code and failure responsability.
2020-04-16 11:20:45 +02:00
..
file-upload-error.js javascript: make Uploader always throw the same kind of errors 2020-04-16 11:20:45 +02:00
progress-bar.js dossiers: allow auto upload of attachments 2020-03-31 13:09:44 +02:00
ujs.js javascript: make Uploader always throw the same kind of errors 2020-04-16 11:20:45 +02:00
uploader.js javascript: make Uploader always throw the same kind of errors 2020-04-16 11:20:45 +02:00