Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to send file from Local FS via HTTP Client

Hi,

how to send whole image file from local FS via http Client to cloudinary as explained here? here is a Curl working example:

    curl -X POST \
  https://api.cloudinary.com/v1_1/demo/auto/upload \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F api_key=XXXXXXXXX \
  -F signature=13521c23f28ba8657ae2abf58325ffcb4101aaf6 \
  -F timestamp=1551477265 \
  -F folder=pictures \
  -F file=@/local-path-the-image-dir/image.jpg

Thanks for your help