mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-05 01:02:59 +08:00
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:
@@ -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 }));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user