System Information
- Strapi Version:
- Operating System:
- Database:
- Node Version:
- NPM Version:
- Yarn Version:
Hi there,
I’m currently trying to solve this challenge: I want to upload media files by just sending over a URL instead of the whole file. I want to build it using a custom plugin, that handles the file download to buffer and that is afterwards calling the Strapi upload plugin programmatically and let it do the rest of the work.
Unfortunately, I can’t find the right way to trigger the upload plugin. Did somebody already realise a similar project and knows, how to handle the upload plugin ?
So I need to find out, how to correctly call this service:
const resp = await strapi.plugins['upload'].services.upload.upload({
data: {
},
files: {
path: filePath,
name: imageName,
},
});
with a file buffer / stream whatever