mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 18:22:37 -04:00
This code should behave the same way as other CSV uploads [1], but we had to write it in a hurry [2] and the way we show an error with the upload field was based off that for PDF uploads, where we show custom button text instead of an error [3]. This fixes the inconsistency, so that we see the same errors for CSV uploads here as in other parts of the app. [1]: https://github.com/alphagov/notifications-admin/blob/6b52735dac02e2284de667676a672d01047995b8/app/templates/views/send.html#L25 [2]: https://github.com/alphagov/notifications-admin/commit/1c02476ee7b3d66cf4db4f9b8616918084caeeda#diff-aedd12af78c9737f1c3344d2afbb9c00878eccbcc754b2b3d9e6864c2ad2f7c3R32 [3]: https://github.com/alphagov/notifications-admin/commit/3b3f74bbf08e7abda58886f3f05537e1192a2a4f