Showing posts with label ror. Show all posts
Showing posts with label ror. Show all posts

Saturday, January 23, 2010

Android and RoR Rest Services

In case this helps anyone else:
When you are doing multipart uploads from Android to Rails, you need to make sure that you tell the MultipartEntry to be Browser compatible:

MultipartEntity multipartContent = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
multipartContent.addPart("media_entry[media]", new FileBody(file));
multipartContent.addPart("media_entry[user_id]", sb1);
and now I'll get back to our new project. More to come when we release an alpha version.