114 Commits

Author SHA1 Message Date
Convly
bdb5a3ee89 Merge branch 'releases/4.3.0' into features/typescript 2022-06-30 16:08:51 +02:00
Pierre Noël
0039c33952 add deprecation message 2022-06-16 19:49:30 +01:00
Pierre Noël
c69ac511f4 Save dimensions for svg and gif images 2022-06-16 17:56:12 +01:00
Convly
6f01b3dbaa Merge branch 'master' of github.com:strapi/strapi into features/typescript 2022-06-16 18:01:02 +02:00
Pierre Noël
02768b6fff
Merge pull request #13370 from cortopy/upload-plugin-replace-media-await
add missing await in upload plugin
2022-06-16 16:45:26 +01:00
Jean-Sébastien Herbaux
aeb21ff85e
Merge pull request #13105 from jorgeRambla/fix/upload-plugin
Fix upload plugin
2022-06-15 09:45:42 +02:00
Convly
85038468b7 Fix unit tests 2022-06-01 14:10:21 +02:00
Convly
66e3aa5dcb Merge branch 'master' into features/typescript 2022-05-24 08:02:38 +02:00
Juan Jimenez-Anca
fb28c2275b add missing await 2022-05-20 23:23:50 +02:00
Alexandre Bodin
aac0e2b465 Merge branch 'master' of github.com:strapi/strapi into fix/mime-type-migration 2022-05-14 09:00:44 +02:00
Vincent
3268c71b3e
Merge pull request #13271 from strapi/features/load-providers-at-register
Load storage providers before server start
2022-05-12 10:08:37 +02:00
Convly
c250186b35 Merge remote-tracking branch 'origin' into features/typescript 2022-05-11 15:55:03 +02:00
Gustav Hansen
8b3ba51f3e
Merge pull request #12881 from strapi/fix/upload-mime-type
ML: Apply fallback mime-type if none is set
2022-05-11 12:37:37 +02:00
vincentbpro
6a80b61610 test: added tests for upload plugin register 2022-05-09 16:01:11 +02:00
vincentbpro
1e83cdd73d Merge branch 'master' into features/load-providers-at-register 2022-05-09 15:02:39 +02:00
vincentbpro
715494585f feat: load storage providers at strapi 'register' step 2022-05-09 10:06:47 +02:00
Gustav Hansen
1e6e769c9a Apply fallback mime-type to all uploaded files if none could be guessed
Co-authored-by: Alexandre Bodin <alexandre.bodin@strapi.io>
Co-authored-by: Pierre Noël <pierre.noel@strapi.io>
2022-05-05 12:37:31 +02:00
Gustav Hansen
be8b8a241d Upload: Apply fallback mime-type if none is set 2022-05-05 12:37:30 +02:00
Pierre Noël
c7c94b310a better stack error 2022-04-25 12:12:56 +02:00
Jorge Rambla
473a265a16
REMOVE count route from upload plugin 2022-04-12 11:12:11 +02:00
Jorge Rambla
9ea086aea5
REMOVE count method from upload controller 2022-04-12 11:11:05 +02:00
Pierre Noël
c463690649 display error when loading upload provider 2022-04-08 18:41:59 +02:00
Convly
f7a20effb1 Fix public directories 2022-04-04 17:12:47 +02:00
soupette
ea4b16b036 Fix tests
Signed-off-by: soupette <cyril@strapi.io>
2022-04-04 12:02:52 +02:00
Convly
84d106e7f8 Use new dirs (app/dist) 2022-04-04 11:46:22 +02:00
Pierre Noël
f245e9dbe2 fix upload bootstrap unit test 2022-03-31 16:00:05 +02:00
Pierre Noël
dd36d43b52 change wording didnt to doesnt 2022-03-31 11:01:40 +02:00
Pierre Noël
7ef77c8481 refactor upload bootstrap 2022-03-31 11:01:39 +02:00
Pierre Noël
8e9c7285dd implement uploadStream wrapping for actionOptions 2022-03-31 11:01:39 +02:00
Gustav Hansen
e776192eed
Revert "Fix actionOptions not taking into account by the upload provider" 2022-03-29 11:29:45 +02:00
Gustav Hansen
bac28de5e8
Merge pull request #12838 from strapi/fix/upload-actionOptions
Fix actionOptions not taking into account by the upload provider
2022-03-29 11:10:04 +02:00
Pierre Noël
cf33ce0b63
Merge pull request #12534 from strapi/content-68/fix-public-path
Move public path config to server.js
2022-03-25 16:35:42 +01:00
Pierre Noël
39d6c1c251 change wording didnt to doesnt 2022-03-25 16:18:57 +01:00
Pierre Noël
aea7e9fccf refactor upload bootstrap 2022-03-25 16:17:40 +01:00
Pierre Noël
091a3d3d85 implement uploadStream wrapping for actionOptions 2022-03-25 16:17:39 +01:00
Nick Frasser
8747947cf3
Ensure provider is always assigned on uploaded file
Previously the uploaded file data was assigned a provider in the conditional block that calculated dimensions on supported images. This caused the provider to be stored as null in the database for some image uploads such as SVG. The provider property is now assigned unconditionally
2022-03-21 23:22:47 -04:00
Pierre Noël
d48302fec0 fix unit test 2022-03-03 14:56:53 +01:00
Pierre Noël
f8c533a614 Merge branch 'master' into content-68/fix-public-path 2022-03-02 15:32:36 +01:00
Pierre Noël
70b2c3f892 change function name 2022-03-01 14:52:31 +01:00
Pierre Noël
8265a9efdf Fix the upload of files directly to an entity 2022-02-28 17:44:18 +01:00
Pierre Noël
3998a9048c fix graphql upload of non-image files 2022-02-28 10:49:16 +01:00
Pierre Noël
83a5aeb8b6 remove rimraf + fix graphql 2022-02-23 11:42:39 +01:00
Pierre Noël
8067dae25b fix replace + refactor tmpWorkingDirectory 2022-02-23 11:42:39 +01:00
Pierre Noël
7fdd9415d7 better handle optimization 2022-02-23 11:42:39 +01:00
Pierre Noël
de5ee33b5a fix internal error when no files are sent 2022-02-23 11:42:38 +01:00
Pierre Noël
1b48050440 migrate aws and cloudinary providers 2022-02-23 11:42:38 +01:00
Pierre Noël
7cf2821451 migrate graphql upload to use streams + use fs-extra 2022-02-23 11:42:35 +01:00
Pierre Noël
186ebfd06e use streams instead of buffers 2022-02-23 11:38:54 +01:00
Pierre Noël
6e17361e32 fix unit test 2022-02-22 11:47:48 +01:00
Pierre Noël
43eeeaa9c0 Use of strapi.dirs.public 2022-02-22 11:47:48 +01:00