@studiohyperdrive/strapi-plugin-media
v0.0.9
Published
This is the description of the plugin.
Downloads
3
Maintainers
Keywords
Readme
Strapi plugin
Media manager plugin for the Strapi CMS.
Installation
1. copy media plugin to plugins folder
strapi_cms
|_ plugins
|_ media
2. set upload path (& base) in config
Add custom config in custom.json
:
{
"uploadPath": "/public/uploads",
"uploadHost": "https://my-server-url/",
"uploadPublicPath": "/uploads",
}
uploadPath: location to store files on the server (defaults to /public/uploads
)
uploadBase: url prefix for uploaded files in case strapi is hosted on a custom url (defaults to strapi host)
uploadPublicPath: public path where uploaded files can be found (defaults to uploads
)
3. adjust request data limit
Increase data limit in environment/**/request.json
if you need to upload bigger images (default is 1mb). Make sure enabled
and multipart
are true:
{
"parser": {
"enabled": true,
"multipart": true,
"formLimit": "5mb"
}
}