diff options
author | Michael Foiani <sotech117@Michaels-MacBook-Pro-5.local> | 2022-06-30 17:01:27 -0400 |
---|---|---|
committer | Michael Foiani <sotech117@Michaels-MacBook-Pro-5.local> | 2022-06-30 17:01:27 -0400 |
commit | 785a5f4d3e896fd29479f412b6ac2ed4888ec401 (patch) | |
tree | 1940e33dc5211cb4f049463fd5bf3ede86bd554f /src/client/Network.ts | |
parent | 622830b6fd673688db938c64d20885d12d3afb28 (diff) | |
parent | fee343f6a4103661a9aeea1eefe94058a9a074c6 (diff) |
merge with master
Diffstat (limited to 'src/client/Network.ts')
-rw-r--r-- | src/client/Network.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/Network.ts b/src/client/Network.ts index b26f2458d..c781d4b6b 100644 --- a/src/client/Network.ts +++ b/src/client/Network.ts @@ -18,6 +18,13 @@ export namespace Networking { return requestPromise.post(options); } + /** + * Handles uploading basic file types to server and makes the API call to "/uploadFormData" endpoint + * with the mapping of GUID to filem as parameters. + * + * @param files the files to be uploaded to the server + * @returns the response as a json from the server + */ export async function UploadFilesToServer<T extends Upload.FileInformation = Upload.FileInformation>(files: File | File[]): Promise<Upload.FileResponse<T>[]> { const formData = new FormData(); if (Array.isArray(files)) { |