strapi-provider-upload-local-url
v1.0.2
Published
An strapi local upload provider with prefix option to set baseurl
Downloads
44
Maintainers
Readme
strapi-provider-upload-local-url
🚀 Overview and Motivation
This provider reflects the strapi-provider-upload-local
but with an additional option to set the baseurl
on upload url data as prefix.
Generally the provider-upload-local is used for development purposes and other providers already implements the baseurl of the provided solution, this provider just prevents refactoring when changes from development environment to staging/production environments.
💻 Example.
config/plugins.js
module.exports = ({ env }) => {
return ({
upload: {
provider: 'local-url',
providerOptions: {
baseurl: "http://localhost:1337"
},
},
})
};
🎉 Congradulations, You're done.
I hope this plugin helps you in your strapi projects and save a lot of time and code.
📜 License
This project is under the MIT license. See the LICENSE for details.
💻 Developed by André Ciornavei - Get in touch!