Allowed Formats
I am trying to upload files with .xls or .xlsx extensions only from node js project to cloudinary. But I get "An unknown file format not allowed" as the error response
0
-
Hi there,
Thanks for reaching out and sorry for the delay in our answer as we discovered an issue preventing us to be alerted.
You should be able to upload .xls and .xlsx files using the following code:
cloudinary.v2.uploader.upload("sample_spreadsheet.xls", { resource_type: "raw" }, function(error, result) {console.log(result, error); });
For more details, you can check out this documentation: https://cloudinary.com/documentation/upload_images#uploading_non_media_files_as_raw_files
Hope that helps.Best,
Loic0
Post is closed for comments.
Comments
1 comment