demarches-normaliennes/app/javascript/new_design
Pierre de La Morinerie ef009f73e2 javascript: report upload FileReader errors to Sentry
We have quite a lot of `Error reading file` errors when uploading files.
These errors are generated by ActiveStorage `file_checksum.js` component
but it eats the actual reason of errors.

(See https://github.com/rails/rails/blob/5-2-stable/activestorage/app/javascript/activestorage/file_checksum.js#L38)

We can't really override the class to generate better errors, as they
are deeply nested in ActiveStorage class hierarchy, and not exported to
external code.

Instead, we hook into the FileReader event handler, to insert a logger
when this error occur. The original event handler will also still be
called as usual.

This is intended to be temporary. The debug code will be removed once
we get a better idea of what is going on.
2020-04-22 11:26:16 +02:00
..
champs Remove deprecated map reader 2020-04-15 18:07:09 +02:00
dossiers javascript: report upload FileReader errors to Sentry 2020-04-22 11:26:16 +02:00
avis.js [fix #2969] use JS replace semicolon by comma in the list email 2018-12-03 12:59:40 +01:00
dropdown.js Use @utils instead of jQuery 2018-10-10 14:55:28 +02:00
form-validation.js Refactor form validation helpers 2018-10-10 14:55:28 +02:00
messagerie.js Run load scripts after ujs responces 2019-08-13 17:03:55 +01:00
procedure-context.js Run load scripts after ujs responces 2019-08-13 17:03:55 +01:00
procedure-form.js procedure: make the layout more similar to the mockup 2019-10-31 10:27:19 +01:00
select2.js Add a timeout to select2 queries 2020-02-03 15:34:08 +01:00
spinner.js Use @utils instead of jQuery 2018-10-10 14:55:28 +02:00
state-button.js implementation du systeme de PJ de motivation 2019-05-07 08:54:29 +02:00
support.js Run load scripts after ujs responces 2019-08-13 17:03:55 +01:00
user-sign_up.js sign_up: fix suggestions error when navigating away 2019-12-19 17:45:14 +01:00