title: Android - Retrofit - File Uploaded to AWS S3 with pre-signed url is corrupt
body: <p>In my application, I need to upload images directly to AWS S3. For this my server generates a pre-signed url and mobile client use that url to PUT file on. Though getting 200 in upload call, the file is not uploaded correctly i.e. it's corrupt and never loads back.
  Following is the code being used to upload file to S3.</p>
  
  <pre><code>public static interface FileUploadService {
      @PUT("/")
      void upload(@Body() RequestBody body,
                  Callback&lt;Object&gt; callback);
  }
  
  
  ServiceGenerator.getUploadService(url).upload(
                      RequestBody.create(MediaType.parse("image/jpeg"), image),
                      new Callback&lt;Object&gt;() { });
  </code></pre>
  
  <p>I'm using Retrofit 1.8.</p>