diff options
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 06b48fe96..c1abd6e71 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1852,9 +1852,7 @@ export namespace DocUtils { export async function uploadFilesToDocs(files: File[], options: DocumentOptions) { const generatedDocuments: Doc[] = []; - // UploadFilesToServer takes an array of FileGuidPairs, - // but these files do not have overwriteDocs, so - // we do not set guid, allowing the client to generate one. + // These files do not have overwriteDocs, so we do not set the guid and let the client generate one. const fileNoGuidPairs: Networking.FileGuidPair[] = files.map(file => ({file})); const upfiles = await Networking.UploadFilesToServer(fileNoGuidPairs); @@ -1869,8 +1867,7 @@ export namespace DocUtils { export function uploadFileToDoc(file: File, options: DocumentOptions, overwriteDoc: Doc) { const generatedDocuments: Doc[] = []; - // Since this file has an overwriteDoc, we can set the client tracking guid - // to the overwriteDoc's guid. + // Since this file has an overwriteDoc, we can set the client tracking guid to the overwriteDoc's guid. Networking.UploadFilesToServer([{file, guid: overwriteDoc[Id]}]).then(upfiles => { const { source: { name, type }, |