mirror of
https://github.com/Nezumi-2711/google-drive-s3.git
synced 2026-09-22 20:01:19 +00:00
Update index.ts
This commit is contained in:
@@ -263,6 +263,8 @@ async function streamUploadToDrive(accessToken: string, stream: ReadableStream |
|
||||
|
||||
const uploadUrl = initRes.headers.get("Location");
|
||||
if (!uploadUrl) {
|
||||
console.error(initRes.status);
|
||||
console.error(await initRes.text());
|
||||
throw new Error("Failed to get upload URL");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user