How to upload image using Discourse API

Experiancing the same problem. @Saurabh_Khandelwal if you are able to find a solution, Please reply me.