We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,有一个关于多版本控制的问题相应咨询一下,为了防止我在同一个桶内文件名称重复,我在控制台开启了多版本控制,在获取文件的时候obsClient的getObject方法中有一个versionId字段可以让我精准找到对应文件,但是在创建临时的URL时,createGetTemporarySignature方法好像并没有找到相关的参数,我在header的map和param的map中都尝试传入versionId,但是都不行,我想问问有没有相应的解决方案呢
The text was updated successfully, but these errors were encountered:
long expireSeconds = 3600L; TemporarySignatureRequest request = new TemporarySignatureRequest(HttpMethodEnum.GET, expireSeconds); request.setBucketName("s3000000test3"); request.setObjectKey("test.sum"); Map<String, Object> queryParams = new HashMap<>(); queryParams.put("versionId","G001118BC7F0603B0000401201878AFF"); request.setQueryParams(queryParams); TemporarySignatureResponse response = obsClient.createTemporarySignature(request); System.out.println("Getting object using temporary signature url:"); System.out.println("\t" + response.getSignedUrl()); downLoadByUrl(response.getSignedUrl(), "D:\\");
参考此demo
Sorry, something went wrong.
No branches or pull requests
你好,有一个关于多版本控制的问题相应咨询一下,为了防止我在同一个桶内文件名称重复,我在控制台开启了多版本控制,在获取文件的时候obsClient的getObject方法中有一个versionId字段可以让我精准找到对应文件,但是在创建临时的URL时,createGetTemporarySignature方法好像并没有找到相关的参数,我在header的map和param的map中都尝试传入versionId,但是都不行,我想问问有没有相应的解决方案呢
The text was updated successfully, but these errors were encountered: