Does anyone know how I exactly I would post a file from a non-web
client? In my case, I want to upload different file formats
(.csv, .txt, etc) from the client’s file system. How does this work
exactly if I’m not using a browser? What would be the format for
the .REST POST?
I’m using a .NET client new to that and not sure exactly how to POST
an external file from a non-web client through REST
Thanks
Chirag
PS. I’m using attachment_fu plugin which automatically creates a REST
controller on the server side
and got the following errors from attachment_fu (file upload) plugin
There were problems with the following fields:
* Content type can’t be blank
* Size is not included in the list
* Size can’t be blank
* Filename can’t be blank
Here’s my view which works fine on the upload (unlike cURL):
<%= error_messages_for :raw_data_file %>