Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
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
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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.