I want to save an image file in a specific folder on Cloudinary. The folder name is "userimg".
Cloudinary Upload API supports a folder
parameter. See - https://cloudinary.com/documentation/image_upload_api_reference#upload
Please try adding:
formData.append('folder', 'userimg');
You can also include the folder in the public ID, e.g., 'myfolder/myimageid'.
Also, see: