Commented out jQuery::FileUpload::Rails::Middleware. It conflicts with remotipart gem but wrapping the response in an extra text area. s3_direct_upload works fine without it.