chore: add extra sub path for custom S3 (#6339)

* fix: storage sdk

* chore: add extra sub path for custom S3
This commit is contained in:
roy
2026-01-30 11:56:53 +08:00
committed by GitHub
parent cdb896ebf9
commit 6213f0001d
12 changed files with 133 additions and 36 deletions
+2 -1
View File
@@ -141,6 +141,7 @@ export const putFileToS3 = async ({
maxSize?: number;
t: any;
}) => {
console.log(headers);
try {
const res = await axios.put(url, file, {
headers: {
@@ -153,6 +154,6 @@ export const putFileToS3 = async ({
onSuccess?.();
}
} catch (error) {
Promise.reject(parseS3UploadError({ t, error, maxSize }));
return Promise.reject(parseS3UploadError({ t, error, maxSize }));
}
};