How to provide upload preset name in HTTPS POST request?
We need to let user review and replace the picture prior to uploading. We realized that the widget does not provide this functionality. Therefore, we had no choice but to use third-side widget. Then we try to POST to Cloudinary HTTPS with the following URL:
action='https://api.cloudinary.com/v1_1/%cloud_name%/image/upload'
Server responses with 400, because we do not provide upload preset name. The question is how to provide upload preset name in HTTPS POST request?
-
Hi Igor,
Please take a look at this curl example:
curl -X POST \
https://api.cloudinary.com/v1_1/<cloud_name>/image/upload \
-H 'content-type: multipart/form-data; \
-F 'file=<file_path>' \
-F upload_preset=<upload_preset_name>Please let me know if it's more clear to you now.
Best,
Yakir
1 -
What is preset_name and where can I get it?
0 -
Hi Ray,
Please see the following for more information- https://cloudinary.com/documentation/upload_images#upload_presets
1
Post is closed for comments.
Comments
3 comments