diff options
author | bobzel <zzzman@gmail.com> | 2023-09-10 18:11:23 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-09-10 18:11:23 -0400 |
commit | 2e32ffaa398f077c5ddc81e950de010199c67c8d (patch) | |
tree | 837574deac74e08d03fc56884bac39e65a308571 /src/client/Network.ts | |
parent | b42680588ed48d57f497ff15a18a693bb7ecb9b8 (diff) |
added progress for pdf uploads
Diffstat (limited to 'src/client/Network.ts')
-rw-r--r-- | src/client/Network.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/Network.ts b/src/client/Network.ts index 631ec9122..e9f93fad3 100644 --- a/src/client/Network.ts +++ b/src/client/Network.ts @@ -58,11 +58,14 @@ export namespace Networking { ]) ); } + formData.set('fileguids', fileguidpairs.map(pair => pair.guid).join(';')); // If the fileguidpair has a guid to use (From the overwriteDoc) use that guid. Otherwise, generate a new guid. fileguidpairs.forEach(fileguidpair => formData.append(fileguidpair.guid ?? Utils.GenerateGuid(), fileguidpair.file)); } else { // Handle the case where fileguidpairs is a single file. - formData.append(fileguidpairs.guid ?? Utils.GenerateGuid(), fileguidpairs.file); + const guids = fileguidpairs.guid ?? Utils.GenerateGuid(); + formData.set('fileguids', guids); + formData.append(guids, fileguidpairs.file); } const parameters = { method: 'POST', |