diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2023-06-14 17:23:23 -0400 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2023-06-14 17:23:23 -0400 |
commit | f0474c18d092f4db49255a1e92d7f052b7398897 (patch) | |
tree | 1e26ccaf42dec4d99904e2eddb36dff6f3b55948 /src/client/util/ReportManager.tsx | |
parent | 20d217d825891cf29a432a048d1f8e7bc04d062a (diff) | |
parent | bf1198fbe73847087b1ec8e00a43306816b3508a (diff) |
Merge branch 'master' into collaboration-sarah
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)); }) |