Not able to upload excel files
When I upload the excel file from the disk (indicating the path on my computer), the file is uploaded correctly. But when I try to upload it with express fileupload (tempfilepath) or multer, the file uploaded to cloudinary is empty. The file that comes in the request is validated and not empty, but it can't be uploaded to cloudinary. I use resource_type:"raw", but it doesn't get uploaded.
It should be noted that the file is uploaded to cloudinary and I do not have any errors, but the file that is uploaded does not have an excel extension and I cannot access it.
-
Hi Julian,
I saw you had also contacted us directly via a ticket where I responded, but I'll share a summary of the answer here as well in case another user has a similar question.
In this case, the file was being uploaded, but due to it coming from a temporary path, there wasn't a filename and extension, and when uploading Raw files into Cloudinary, we require the public_id to contain the extension. This is why the file uploaded as Raw but was showing the format as "N/A". The solution was to pass the `filename_override` parameter as part of the upload() call with a value for the name of the file + extension and we will use that as part of the uploaded file.
Please sign in to leave a comment.
Comments
1 comment