Evan Ruff - 2014-09-29

Hello,

I'm having a devil of a time getting GWT/Moxie Uploader to work with the signed url technique to upload files to Google Cloud Storage. Basically, you prime GCS with a credential, then you pass that to your form and it allows you to upload for a brief period of time. I have an example running that uploads a trivial file using the HttpComponent's fluent library that I pulled of SO. I'm confident that all my signing and such is working as expected, as I've used the same technique with the server-to-GCS implementation.

The problem I'm running into is with Uploader. Setting the URL and hitting start upload almost immediately triggers the onUploadError with an Unknown Error message. I'm not sure how to go about trouble shooting the client side.

The Fluent call that works is pretty basic, just pushing up the body:

HttpResponse response = Request.Put( url ).bodyByteArray( "My test file".getBytes() ).execute().returnResponse();

Any ideas? Has anyone tried this? Thanks for any advice!