File upload using Cloudinary errors when uploading file types other than image
Informations
- Node.js version: v10.11.0
- npm version: 6.4.1
- Strapi version:
- Database: MongoDB
- Operating system: macOS Sierra
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
- Install strapi-upload-cloudinary package.
npm i strapi-upload-cloudinary
- Go to Plugins > File Upload.
- Choose Cloudinary from Providers.
- Set your Cloud name, API Key and API Secret and Save.
- Go to Files Upload and upload a video file like mp4. Get one here if you don't have one: https://sample-videos.com/
- Try PDF files or any other format other than image.
- OBSERVED. Can't upload videos or any other format like PDF.
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
Look here for some clarity https://objective-cwan67.github.io/brooke5/