Claire
84ceebe1c4
Fix media attachment size validation not correctly accounting for file type ( #16819 )
...
* Fix media attachment size validation not correctly accounting for file type
Fixes a regression introduced in #16724 caused by the fact that kt-paperclip
now correctly runs validations before processing, meaning that file size
verification could not rely on our before_post_processing hook.
Moved the `before_post_processing` hooks to `before_validate` to make sure
the media attachment type is set correctly before the file gets validated.
* Add tests
2021-10-06 14:49:32 +01:00
..
2020-11-04 20:45:01 +01:00
2021-08-11 17:48:42 +02:00
2019-09-11 16:32:44 +02:00
2021-04-15 05:00:25 +02:00
2019-09-19 20:58:19 +02:00
2018-10-07 23:44:58 +02:00
2020-09-15 14:37:58 +02:00
2017-06-18 02:59:49 +02:00
2020-12-15 17:23:58 +01:00
2019-09-19 20:58:19 +02:00
2018-10-04 12:36:53 +02:00
2021-03-12 05:25:24 +01:00
2021-08-09 23:11:50 +02:00
2020-01-23 22:00:13 +01:00
2020-01-23 22:00:13 +01:00
2020-01-23 22:00:13 +01:00
2018-10-04 12:36:53 +02:00
2017-06-19 11:31:37 +02:00
2021-04-17 03:14:25 +02:00
2018-10-04 12:36:53 +02:00
2019-07-28 17:47:37 +02:00
2019-06-28 15:54:10 +02:00
2018-12-21 18:52:57 +01:00
2018-12-11 05:30:57 +01:00
2018-10-04 12:36:53 +02:00
2020-06-02 19:24:53 +02:00
2019-07-30 11:10:46 +02:00
2020-01-08 22:42:05 +01:00
2017-11-14 20:37:17 +01:00
2020-06-02 19:24:53 +02:00
2019-04-08 07:28:27 +02:00
2017-06-19 01:38:50 +02:00
2019-02-04 04:25:59 +01:00
2021-04-12 12:37:14 +02:00
2021-04-23 22:51:21 +02:00
2020-12-18 09:18:31 +01:00
2019-10-06 22:11:17 +02:00
2018-12-06 17:38:49 +09:00
2020-12-18 09:18:31 +01:00
2020-09-15 14:37:58 +02:00
2020-10-12 16:33:49 +02:00
2018-10-04 12:36:53 +02:00
2018-10-04 12:36:53 +02:00
2021-06-21 17:07:30 +02:00
2019-09-06 13:55:51 +02:00
2021-10-06 14:49:32 +01:00
2017-04-05 00:29:56 +02:00
2018-10-04 12:36:53 +02:00
2021-01-31 21:24:57 +01:00
2020-06-02 19:24:53 +02:00
2019-03-03 22:18:23 +01:00
2019-07-27 10:24:26 +02:00
2018-10-04 12:36:53 +02:00
2020-09-07 11:02:04 +02:00
2020-05-08 20:17:16 +02:00
2018-07-13 02:16:06 +02:00
2019-08-30 02:19:17 +02:00
2017-05-22 15:50:58 -04:00
2019-08-06 15:33:03 +02:00
2021-02-21 19:50:12 +01:00
2019-01-05 12:43:28 +01:00
2021-05-06 14:22:54 +02:00
2021-03-24 10:44:31 +01:00
2017-11-14 20:44:11 +01:00
2018-04-25 14:12:28 +02:00
2020-09-07 11:02:04 +02:00
2018-11-19 00:43:52 +01:00
2020-06-02 19:24:53 +02:00
2021-07-05 19:16:21 +02:00
2021-04-25 06:33:28 +02:00
2021-05-07 14:33:43 +02:00
2020-04-15 20:33:24 +02:00
2019-04-09 23:06:30 +09:00
2021-07-08 05:31:28 +02:00
2020-09-16 20:16:46 +02:00