'How to upload image using imgur api with curl

there are so many examples but there is no example with curl. I am a windows user, so i downloaded curl and type like below in cmd.

C:\Users\ParkJooHyeong\Downloads\curl-7.81.0-win64-mingw\bin>curl --location --request POST "https://api.imgur.com/3/image" --header "Authorization: Client-ID 47beae464ad****" --form "image="C:\Users\ParkJooHyeong\Downloads\curl-7.81.0-win64-mingw\bin\test.png""

and i get response like this

{"data":{"error":"Invalid URL (C:\Users\ParkJooHyeong\Downloads\curl-7.81.0-win64-mingw\bin\test.png)","request":"/3/image","method":"POST"},"success":false,"status":400}

what should i do??



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source