aboutsummaryrefslogtreecommitdiff
path: root/src/client/Network.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-09-10 15:58:09 -0400
committerbobzel <zzzman@gmail.com>2023-09-10 15:58:09 -0400
commit6499ac4b30c8f6ada2b0c7d74cd5f2a73f9bf180 (patch)
treea6262cc5fad835bd8ea8a4e2c68633885866b559 /src/client/Network.ts
parent942669b287a8aacc3f4c803beb450a7e3ae8b565 (diff)
fixes for file uploads: restored progress for youtube videos, fixed info display on loadingBoxes, stop client from asking for progress on failed uploads. attempt to catch stream errors on webpages. fixed dataFieldView in text to print out layout document's field, not field of document that contains the field definition.
Diffstat (limited to 'src/client/Network.ts')
-rw-r--r--src/client/Network.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Network.ts b/src/client/Network.ts
index 39bf69e32..631ec9122 100644
--- a/src/client/Network.ts
+++ b/src/client/Network.ts
@@ -74,10 +74,10 @@ export namespace Networking {
return response.json();
}
- export async function UploadYoutubeToServer<T extends Upload.FileInformation = Upload.FileInformation>(videoId: string): Promise<Upload.FileResponse<T>[]> {
+ export async function UploadYoutubeToServer<T extends Upload.FileInformation = Upload.FileInformation>(videoId: string, overwriteId?: string): Promise<Upload.FileResponse<T>[]> {
const parameters = {
method: 'POST',
- body: JSON.stringify({ videoId }),
+ body: JSON.stringify({ videoId, overwriteId }),
json: true,
};
const response = await fetch('/uploadYoutubeVideo', parameters);