I have a rails application that act as a backend. In my application I have an image uploading field which uses paperclip gem.
It works fine in web view, but I need to upload a image from front-end. I tried in POSTMAN Client by giving image path in JSON format, but it does not works.
Does any one know the format for uploading image? Is there any thing I need to specify in header?
What I have:
Image uploading from POSTMAN Client
Posting URL
http://localhost:3000/users.json --- POST
Headers used
Content-Type -> application/json
Raw Data
{
"image":"C://image/sample.jpg"
}