75 Commits

Author SHA1 Message Date
Giulio Montagner
f8af92b375
fix: add sizeInBytes for upload providers (#19593) 2024-02-23 11:37:26 +01:00
Jamie Howard
c53b7a7ae4 fix: simplify emitEvent logic 2023-06-01 15:20:13 +01:00
Jamie Howard
d77e42b859 refactor(webhooks): populate allowed events from relevant modules 2023-05-30 16:13:10 +01:00
Jamie Howard
14ff035647 feature: replace emitEvent calls with new webhook store 2023-05-25 12:37:38 +01:00
Kevin Antonio Rateni Iatauro
edc2bdcecd
Decouple image resizing and optimization (#14029)
Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2023-03-22 11:00:21 +01:00
nathan-pichon
57009a0f30
fix(file-utils): rewrite requires 2023-02-08 15:57:14 +01:00
nathan-pichon
5316123801
fix(upload-local-provider): use package require instead of absolute path 2023-02-08 15:33:49 +01:00
Marc-Roig
e0e2d28f02 Merge branch 'main' into feature/provider-size-limit 2023-02-01 15:56:39 +01:00
Pierre Noël
c02061d142 use sequential update for locales and components 2023-01-23 17:32:04 +01:00
Nathan Pichon
76bdf07031
Merge pull request #15151 from strapi/fix/media-upload-diacritics
fix(upload): normalize the string used as basename
2022-12-20 15:45:18 +01:00
Jamie Howard
07febfa69e Merge remote-tracking branch 'origin/main' into feature/media-library-ctv 2022-12-16 13:57:57 +00:00
nathan-pichon
0cf5d3c654
fix(upload): normalize the string used as basename 2022-12-12 11:45:29 +01:00
Jamie Howard
c8c1678006 feat(upload): configure the view
test: e2e
chore: naming
2022-10-31 17:21:51 +00:00
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
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
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
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
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
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +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
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
03c8ba6bba fix optimization file 2022-08-04 17:16:43 +02:00
Marc-Roig
d61104de72 check if image is faulty in enhanceFile 2022-08-04 12:56:58 +02:00
Marc-Roig
5b0bcab7b1 move try catch to image manipulation 2022-08-03 20:39:44 +02:00
Marc-Roig
38bd435f2f test corrupt image upload 2022-08-03 12:48:12 +02:00
Marc-Roig
09fdd984c1 test upload image 2022-08-01 15:53:03 +02:00
Marc-Roig
f0b67b9ec5 add function for uploading image 2022-08-01 12:14:13 +02:00
Marc
47a4486943 do not override width and height 2022-07-30 10:14:37 +02:00
Gustav Hansen
4fcb38d53d Merge branch 'master' into features/ML-folder 2022-07-05 12:53:51 +02:00
Pierre Noël
c69ac511f4 Save dimensions for svg and gif images 2022-06-16 17:56:12 +01:00
Juan Jimenez-Anca
fb28c2275b add missing await 2022-05-20 23:23:50 +02:00
Pierre Noël
922ade1619 files uploaded through the content API go in a specific folder 2022-05-17 11:54:26 +02:00
Pierre Noël
8d5fe3b431 apply feedback 2022-05-13 16:10:18 +02:00
Pierre Noël
8abc6a73cb apply feedback 2022-04-28 13:29:04 +02:00
Pierre Noël
587b62ea7b replace path by location + add location to files 2022-04-28 13:29:04 +02:00
Pierre Noël
ada5553977 remove path for files + add base for delete folders 2022-04-28 13:29:03 +02:00