signed-url

Cannot upload object to Google Cloud Storage using signed url and HTTP PUT

末鹿安然 提交于 2021-02-11 15:31:18
问题 I'm trying to upload an object to the Google cloud storage, using a signed url . I'm generating the url , using a JAVA method, as follows (with the help of this link): public String generatePutObjectSignedUrl(String bucketName, String objectName, String contentType) throws GenericAttachmentException { if (!bucketExists(bucketName)) { createBucket(bucketName); } // Define resource BlobInfo blobInfo = BlobInfo.newBuilder(BlobId.of(bucketName, objectName)).build(); // Generate signed URL Map