0

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"
}
Community
  • 1
  • 1
Cyber
  • 4,844
  • 8
  • 41
  • 61

1 Answers1

0

I have also used rails as backend for iphone application and now i can upload the images from application to s3. Check out the following link and you will get some idea.

http://brainbowapps.com/articles/2010/uploading-files-from-iphone-to-rails.html

logesh
  • 2,572
  • 4
  • 33
  • 60