Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
provider-upload-filerobot
Advanced tools
The Filerobot Upload Provider MUST be installed AFTER the Filerobot Plugin for the Strapi CMS.
npm install provider-upload-filerobot
or
yarn add provider-upload-filerobot
In config/plugins.js
module.exports = {
// ...
'upload': {
config: {
provider: 'provider-upload-filerobot',
providerOptions: {},
},
},
};
In config/middlewares.js
Edit the 'strapi::security',
section again:
Append '{YOUR FILEROBOT TOKEN}.filerobot.com'
or your entire domain name (cname)
module.exports = [
'strapi::errors',
{ // ---- FROM HERE
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ["'self'", 'https:'],
'img-src': ["'self'", 'data:', 'blob:', 'assets.scaleflex.com', 'scaleflex.cloudimg.io', '{YOUR FILEROBOT TOKEN}.filerobot.com'],
'media-src': ["'self'", 'data:', 'blob:', 'assets.scaleflex.com', 'scaleflex.cloudimg.io', '{YOUR FILEROBOT TOKEN}.filerobot.com'],
upgradeInsecureRequests: null,
},
},
},
}, // ---- TO HERE
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];
For proper re-display after upload to Filerobot.
yarn build
yarn start
Now when you upload stuff to Strapi's Media Library, the images will end up with a Filerobot URL:
On top of that, if you have a content type which contains a Media field, like for example below:
The media that you'll add/upload into the content-post will also end up with a Filerobot URL:
FAQs
Strapi v4 upload provider for Filerobot by Scaleflex
The npm package provider-upload-filerobot receives a total of 6 weekly downloads. As such, provider-upload-filerobot popularity was classified as not popular.
We found that provider-upload-filerobot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.