21 Commits

Author SHA1 Message Date
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
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
Gustav Hansen
bf32846a12 Merge branch 'master' into features/ML-folder 2022-05-30 10:47:27 +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
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
9476065472 add ability to set and change file folder location 2022-04-28 13:29:03 +02: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
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
Convly
0d7d430469 Bump graphql-upload version & link content API scope to the custom mutations 2021-11-30 16:27:59 +01:00
Jean-Sébastien Herbaux
7f285fb755
[V4] Enhanced sanitize & remove restricted relations from content API's payloads (#11411)
* Rework sanitizeEntity, first iteration

* remove console.log

* Remove useless comments

* Fix e2e tests

* Fix up user e2e test

* Fix remove-restricted-relations visitor

* Handle grapqhql resolver, prevent access to restricted relations

* Handle polymorphic relation in the related visitor

* Remove morph attribute if empty

* Use only the find action to check if the relation is allowed
2021-11-04 15:47:53 +01:00
Alexandre Bodin
c7a94ed081 Migrate middlwares to programmatic for plugin that do not need to export them 2021-09-29 10:47:10 +02:00
Convly
667c29bd3a Fix upload & gql-crud e2e tests 2021-09-28 11:11:03 +02:00
Convly
a303b0e5c4 Don't run shadowCRUD related operations if it's disabled 2021-09-22 18:17:51 +02:00
Jean-Sébastien Herbaux
5a7a5dc987
[V4] GraphQL - Migrate Users & Permissions GraphQL config to V4 (#10979)
* Migrate UsersPermissions's GQL configuration to V4

* Remove old graphql configuration
2021-09-15 15:44:42 +02:00
Convly
64e5a70c64 Migrate upload plugin's graphql config to new extension API 2021-09-10 15:54:19 +02:00