318 Commits

Author SHA1 Message Date
ivanThePleasant
01bb760793 Clean up unnecessary code 2022-09-29 14:15:07 +03:00
ivanThePleasant
5a4362faf7 Refactor changes to use request context 2022-09-29 11:24:11 +03:00
Marc-Roig
ac79c07b59 file name is too big 2022-09-23 14:44:20 +02:00
Marc-Roig
dbd85eef4f change comment 2022-09-20 15:24:51 +02:00
Marc-Roig
60ac7848e1 validate file size before upload 2022-09-20 15:23:45 +02:00
Marc-Roig
18d925a2dd add tests 2022-09-19 16:31:29 +02:00
Marc-Roig
437285e9c5 add size limit parameter in checkFileSize 2022-09-16 11:13:07 +02:00
Marc-Roig
2f0380fb16 local provider transform file size to kb 2022-09-13 17:42:50 +02:00
Marc-Roig
36e237f394 leave verify size function inside local provider 2022-09-13 16:14:34 +02:00
Marc-Roig
32e321fc42 account for empty providerOptions 2022-09-13 11:34:28 +02:00
Marc-Roig
df28f7026e checkFileSize in provider upload 2022-09-13 10:21:30 +02:00
ivanThePleasant
b5c98ae0cd Refactor event calls to follow old format, encapsulate hashing in the sender, refactor the format of event payload to better correspond to the new api 2022-09-02 14:43:51 +03:00
ivanThePleasant
cbfde4a11c Merge branch 'main' into chore/user-level-data 2022-09-02 12:22:12 +03:00
Gustav Hansen
269c9cb988 chore: Resolve jest@26 TODO 2022-08-30 15:44:12 +02:00
ivanThePleasant
a1ea7439ea Merge branch 'main' into chore/user-level-data 2022-08-25 15:21:39 +03:00
Marc
21d06ce7d0
Merge pull request #13996 from strapi/fix/upload-image-without-extension
Fix: upload media image with non standard urls
2022-08-17 09:29:29 +02:00
ivanThePleasant
de26abb7ff Merge branch 'master' into chore/user-level-data 2022-08-16 12:53:49 +03:00
ivanThePleasant
459de9774d Refactor hash function, add uuid to the admin hash, remove debug console logs 2022-08-16 11:58:15 +03:00
ivanThePleasant
3ead6f2487 Move hash function to user services instead of it being a separate service 2022-08-12 10:19:40 +03:00
ivanThePleasant
7e5b38d588 Merge branch 'master' into chore/user-level-data 2022-08-11 18:28:58 +03:00
Pierre Noël
8668ba9aea fix eslint issues 2022-08-11 16:59:02 +02:00
Marc-Roig
e34381faff Merge branch 'master' into fix/upload-image-without-extension 2022-08-11 16:34:48 +02:00
Marc-Roig
654e65c6ae wrap image uploads with promise all
wrap image uploads with promise all
2022-08-11 16:21:19 +02:00
ivanThePleasant
f8ac76491f Convert all server events to new format, refactor admin events userAdminId, refactor tests 2022-08-11 15:56:39 +03:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Alexandre Bodin
0ae14c06cb 1st fix pass 2022-08-11 10:20:48 +02:00
ivanThePleasant
7291d2e6cf Change user hashing to be a service on admin, introduce adminUserId property to the send function, refactor several events 2022-08-09 12:20:25 +03:00
WalkingPizza
544b1258dd Properly flag that upload has multiple files 2022-08-08 15:26:09 +02:00
WalkingPizza
4e1d735803 Generate a fileInfo array on when necessary 2022-08-08 15:08:26 +02:00
WalkingPizza
073e6cc3be Generate fileInfo for every file when uploading in bulk 2022-08-08 15:00:12 +02:00
Marc-Roig
08cb683bd1 clean url when uploading media from url 2022-08-08 14:06:30 +02:00
Marc-Roig
5a90357622 get extension from mime type if not available 2022-08-08 10:38:42 +02:00
Marc-Roig
4de86c4927 get extension from filename when bin 2022-08-08 09:37:37 +02:00
Marc-Roig
41dae37e1f get extension from file name 2022-08-08 09:33:01 +02:00
Marc-Roig
97c695f597 add prefix to extension 2022-08-05 16:53:41 +02:00
Marc-Roig
de8ffeaa7b extract file type from mime type if possible 2022-08-05 15:50:27 +02:00
Marc-Roig
d266c41c01 remove faulty image tests 2022-08-04 17:35:44 +02:00
Marc-Roig
03c8ba6bba fix optimization file 2022-08-04 17:16:43 +02:00
Marc-Roig
aa588b4629 update corrupt image test 2022-08-04 16:07:12 +02:00
Marc-Roig
d8c218a089 change writableDiscardStream name 2022-08-04 13:05:25 +02:00
Marc-Roig
39102d185e change writableDiscardStream name 2022-08-04 12:58:47 +02:00
Marc-Roig
d61104de72 check if image is faulty in enhanceFile 2022-08-04 12:56:58 +02:00
Marc-Roig
096dba7983 expect Application Error in test 2022-08-04 09:37:38 +02:00
Marc-Roig
5b0bcab7b1 move try catch to image manipulation 2022-08-03 20:39:44 +02:00
Marc-Roig
ff932b1cb3 remove image 2022-08-03 12:49:34 +02:00
Marc-Roig
38bd435f2f test corrupt image upload 2022-08-03 12:48:12 +02:00
Marc-Roig
06e0bde9c0 Merge branch 'master' into fix/app-crashes-on-upload-faulty-image 2022-08-03 11:53:44 +02:00
Marc-Roig
237d12abf4 typos 2022-08-03 09:39:52 +02:00
Marc-Roig
840fc194c8 remove comment 2022-08-03 09:33:47 +02:00
Marc-Roig
fcbff9e5e7 handle image transformation error 2022-08-03 09:26:26 +02:00