From 89e7148bd41ce6a3f243b9203c534cfd80aa3178 Mon Sep 17 00:00:00 2001 From: nicwands Date: Thu, 4 Jun 2026 13:38:13 -0400 Subject: [PATCH] add local upload provider --- config/plugins.ts | 12 ++++++++++-- package-lock.json | 1 + package.json | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/config/plugins.ts b/config/plugins.ts index f2d904f..405a576 100644 --- a/config/plugins.ts +++ b/config/plugins.ts @@ -1,5 +1,13 @@ -import type { Core } from '@strapi/strapi'; +import type { Core } from "@strapi/strapi"; -const config = ({ env }: Core.Config.Shared.ConfigParams): Core.Config.Plugin => ({}); +const config = ({ + env, +}: Core.Config.Shared.ConfigParams): Core.Config.Plugin => ({ + upload: { + config: { + provider: "local", + }, + }, +}); export default config; diff --git a/package-lock.json b/package-lock.json index ccd6230..67e3dae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@strapi/plugin-cloud": "5.47.1", "@strapi/plugin-users-permissions": "5.47.1", + "@strapi/provider-upload-local": "^5.47.1", "@strapi/strapi": "5.47.1", "better-sqlite3": "^12.10.0", "pg": "8.20.0", diff --git a/package.json b/package.json index f0e5513..5f98237 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "dependencies": { "@strapi/plugin-cloud": "5.47.1", "@strapi/plugin-users-permissions": "5.47.1", + "@strapi/provider-upload-local": "^5.47.1", "@strapi/strapi": "5.47.1", "better-sqlite3": "^12.10.0", "pg": "8.20.0",