Cloudinary Upload API: Why The "path" argument must be of type string. Received an instance of Object?
I am trying to use the Cloudinary Upload API to programmatically upload a File object to my Cloudinary media library, but for some reason I get the following server error:
Full stack overflow question here: nuxtjs3 - Nuxt3 and Cloudinary Upload API: The "path" argument must be of type string. Received an instance of Object - Stack Overflow
{ "url": "/api/cloudinary/upload", "statusCode": 500, "statusMessage": "Internal Server Error", "message": "The \"path\" argument must be of type string. Received an instance of Object", "description": "<pre><span class=\"stack internal\">at new NodeError (node:internal/errors:371:5)</span>\n<span class=\"stack internal\">at validateString (node:internal/validators:119:11)</span>\n<span class=\"stack\">at basename (node:path:752:5)</span>\n<span class=\"stack internal\">at post // snipped out rest
}
0
-
Update: I was able to solve it, nevermind. Thanks.
0 -
Hi Nick.
Thanks for getting in touch. I'm glad you were able to solve the issue. Would you mind please sharing the solution? If anyone comes here with a similar problem in the future, your answer could be really helpful to them.
Many thanks,
-Danny0
Post is closed for comments.
Comments
2 comments