Uploading an image from Android (with Android Asynchronous Http Client) to rails server (with paperclip)
I'm trying to upload an image file via http post method from android device to rails server. But posting an image is not working. More specifically, the post parameter (including image file) doesn't seem to be sent correctly. I'm using Android Asynchronous Http Client (http://loopj.com/android-async-http/) to post an image from android, and the code for posting image is like this. public static void postImage(){ RequestParams params = new RequestParams(); params.put("picture[name]","MyPictureName"); params.put("picture[image]",File(Environment.getExternalStorageDirectory().getPath() + "