我想将图像文件保存在Cloudinary上的特定文件夹中。文件夹名称是“ userimg”。

Here is my code to save without a folder

My cloudinary and folder directory

最佳答案

Cloudinary Upload API支持folder参数。参见-https://cloudinary.com/documentation/image_upload_api_reference#upload

请尝试添加:

formData.append('folder', 'userimg');


您也可以将文件夹包含在公共ID中,例如“ myfolder / myimageid”。

另请参阅:

https://support.cloudinary.com/hc/en-us/articles/202520902-Can-I-create-folders-in-my-Cloudinary-account-

关于image-uploading - 如何使用Cloudinary将图像保存到特定文件夹?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48877292/

10-12 00:48