Skip to content
New issue

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

使用oss筛选文件,ListObjectsRequest的prefix为中文情况下无法获取到文件信息解决办法 #515

Open
simmongu opened this issue Mar 10, 2024 · 0 comments

Comments

@simmongu
Copy link

OSSClient client = getClient();
ListObjectsRequest request = new ListObjectsRequest();
// 设置中文条件时未查询到相关数据信息
request.setPrefix("图片中文名");
request.setBucketName(ossConfig.getBucketName());
ObjectListing listing = client.listObjects(request);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant