Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scaleflex/strapi-provider-upload-cloudimage
https://github.com/scaleflex/strapi-provider-upload-cloudimage
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/scaleflex/strapi-provider-upload-cloudimage
- Owner: scaleflex
- License: mit
- Created: 2023-01-01T03:11:01.000Z (almost 2 years ago)
- Default Branch: v4
- Last Pushed: 2023-03-29T06:49:20.000Z (over 1 year ago)
- Last Synced: 2024-04-15T04:26:43.346Z (7 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Cloudimage upload provider from Scaleflex for Strapi v4
## Install
`npm install provider-upload-cloudimage`
The Cloudimage Upload Provider should be installed after the Cloudimage Plugin for the Strapi CMS. Otherwise it will just upload images to the local server.
## Config
`config/plugins.js`
```
module.exports = {
...
'upload': { // Add this section
config: {
provider: 'provider-upload-cloudimage',
providerOptions: {},
},
},
};
````config/server.js`
Append `url: 'domain (including the http/https:// part)'`
Eg: if you website is called `mywebsite.com`, then write like this:
```
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
app: {
keys: env.array('APP_KEYS'),
},
url: 'https://www.mywebsite.com',
});
```**It’s very important that you don’t forget to do this**
## What this upload-provider brings
Converts the images' URLs to Cloudimage URLs upon every upload (both in admin back-office and API).
So URLs will be converted to `{Cloudimage-token}/cloudimg.io/{original-URL}`.