Informations
What is the current behavior?
Using strapi-upload-cloudinary package, uploading _videos_ and other file types other than _image_ results to an error.
Steps to reproduce the problem
What is the expected behavior?
Should be able to upload any file format. This works out of the box with the default one.
Suggested solutions
Set resource_type
to auto
for Cloudinary to automatically detect file type and take care including 'video', 'pdf' and other file types.
Example code:
const upload_stream = cloudinary.uploader.upload_stream({})
to
const upload_stream = cloudinary.uploader.upload_stream({ resource_type: "auto" })
Although the file problem should have been fixed, it still happens with e.g. with files other than images and pdfs. The changes from #2390 using:
resource_type: "auto"
don't seem to work.
Informations
Node.js version: 10.15.3
npm version: 6.9.0
Strapi version: 3.0.0-alpha.25.2
Database: MongoDB
Operating system: macOS Mojave
I've tripple checked my strapi-provider-upload-cloudinary version: 3.0.0-alpha.15
Can you try to find what is the issue and open a PR to fix it please.
We will appreciate your contribution on this issue.
Hello,
i had the same problem in one of my projects.
Upgrading strapi-provider-upload-cloudinary
in plugins/upload/package.json
of my project from 3.0.0-alpha.15
to 3.0.0-alpha.26.2
fixed it for me.
https://github.com/strapi/strapi/pull/2390 was not included in 3.0.0-alpha.15
.
Informations
Node.js version: v11.14.0
npm version: 6.9.0
Strapi version: 3.0.0-alpha.24.1
Database: MongoDB
Operating system: macOS Mojave
strapi-provider-upload-cloudinary: 3.0.0-alpha.26.2
Most helpful comment
Although the file problem should have been fixed, it still happens with e.g. with files other than images and pdfs. The changes from #2390 using:
resource_type: "auto"
don't seem to work.
Informations
Node.js version: 10.15.3
npm version: 6.9.0
Strapi version: 3.0.0-alpha.25.2
Database: MongoDB
Operating system: macOS Mojave
I've tripple checked my strapi-provider-upload-cloudinary version: 3.0.0-alpha.15