mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 12:43:42 +08:00
support stable diffusion plugin (#49)
This commit is contained in:
@@ -51,11 +51,16 @@ export default class S3FileStorage {
|
||||
|
||||
console.log(signedUrl);
|
||||
|
||||
await fetch(signedUrl, {
|
||||
method: "PUT",
|
||||
body: data,
|
||||
});
|
||||
try {
|
||||
await fetch(signedUrl, {
|
||||
method: "PUT",
|
||||
body: data,
|
||||
});
|
||||
|
||||
return `/api/file/${fileName}`;
|
||||
return `/api/file/${fileName}`;
|
||||
} catch (e) {
|
||||
console.error("[R2]", e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user