Skip to content
Permalink
Browse files
Send blank conent type so Cloud Files can determine the content type.
  • Loading branch information
Everett Toews committed Jul 28, 2013
1 parent 089bc28 commit d46f273ce2ea52b068787dd70c278973157c9805
Showing 1 changed file with 1 addition and 0 deletions.
@@ -199,6 +199,7 @@ protected BlobUploader(String container, BlobDetail toBeUploadedBlobDetail) {
public BlobDetail call() throws Exception {
Blob blob = storage.blobBuilder(toBeUploadedBlobDetail.getRemoteBlobName())
.payload(toBeUploadedBlobDetail.getLocalFile())
.contentType("") // allows Cloud Files to determine the content type
.build();
String eTag = storage.putBlob(container, blob);
BlobDetail uploadedBlobDetail = new BlobDetail(

0 comments on commit d46f273

Please sign in to comment.