diff options
author | eperelm2 <emily_perelman@brown.edu> | 2023-07-05 12:48:02 -0400 |
---|---|---|
committer | eperelm2 <emily_perelman@brown.edu> | 2023-07-05 12:48:02 -0400 |
commit | b59241f60140625b80aad5c9455c75fc1f3439ac (patch) | |
tree | 59e3aab7ffced8e6081cdb36eb1cad9465db844c /src/client/util/ReportManager.tsx | |
parent | 5b7a0804fa2bd4b956b3617501619737814bd28b (diff) | |
parent | 638a3ce3bcd4aa7287544be82d8d9d07ee963600 (diff) |
Merge branch 'master' into secondpropertiesmenu-emily
Diffstat (limited to 'src/client/util/ReportManager.tsx')
-rw-r--r-- | src/client/util/ReportManager.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/ReportManager.tsx b/src/client/util/ReportManager.tsx index 51742d455..4c1020455 100644 --- a/src/client/util/ReportManager.tsx +++ b/src/client/util/ReportManager.tsx @@ -173,7 +173,7 @@ export class ReportManager extends React.Component<{}> { // upload the files to the server if (input.files && input.files.length !== 0) { const fileArray: File[] = Array.from(input.files); - (Networking.UploadFilesToServer(fileArray)).then(links => { + (Networking.UploadFilesToServer(fileArray.map(file =>({file})))).then(links => { console.log('finshed uploading', links.map(this.getServerPath)); this.setFileLinks((links ?? []).map(this.getServerPath)); }) |