How to upload file via the JSON interface in Rails

Posted by akafazov on Stack Overflow See other posts from Stack Overflow or by akafazov
Published on 2010-05-04T08:20:03Z Indexed on 2010/05/04 8:28 UTC
Read the original article Hit count: 247

Filed under:
|
|
|

Hi,

I have a web service in Rails which among all else should provide file upload functionality to the clients. The clients all use JSON to talk to the webservice. I use the Paperclip plugin for upload management.

The problem is I do not know how to upload a file via JSON. All works in the web formular, but I cannot find information on how to consctruct my JSON Request to send files to the server. Can somebody help out?

Regards, Angel Kafazov

© Stack Overflow or respective owner

Related posts about rails

Related posts about JSON