Credits to the patch of the BlobStoreHandler