demarches-normaliennes/app/javascript
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
..
components Expose multiple user selections on champ carte 2020-04-15 18:07:09 +02:00
loaders Revert "Revert "Revert "Revert "feat/4893 - migrate the mapReader to mapbox-gl with react"""" 2020-04-09 11:01:20 +02:00
manager/fields Explicitly import jQuery 2018-08-13 15:17:13 +02:00
new_design javascript: report upload FileReader errors to Sentry 2020-04-22 11:26:16 +02:00
packs dossiers: allow auto upload of attachments 2020-03-31 13:09:44 +02:00
shared Carte Editor sends FeatureCollection to the server 2020-04-16 18:29:19 +02:00