An strapi local upload provider with prefix option to set baseurl
npm install strapi-provider-upload-local-urlThis 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.
---
config/plugins.js
``js``
module.exports = ({ env }) => {
return ({
upload: {
provider: 'local-url',
providerOptions: {
baseurl: "http://localhost:1337"
},
},
})
};
---
I hope this plugin helps you in your strapi projects and save a lot of time and code.
---
This project is under the MIT license. See the LICENSE for details.
---
💻 Developed by André Ciornavei - Get in touch!