diff options
| author | Sophie Zhang <sophie_zhang@brown.edu> | 2023-09-18 17:39:20 -0400 |
|---|---|---|
| committer | Sophie Zhang <sophie_zhang@brown.edu> | 2023-09-18 17:39:20 -0400 |
| commit | f5e765adff1e7b32250eb503c9724a4ac99117f3 (patch) | |
| tree | c484f8b279ae2a07b16802df86ab4f905918eab5 /src/client/util | |
| parent | 022540e2833025409fd8017c5c9ecb3bfc93867b (diff) | |
prepare merge
Diffstat (limited to 'src/client/util')
| -rw-r--r-- | src/client/util/reportManager/ReportManager.tsx | 1 | ||||
| -rw-r--r-- | src/client/util/reportManager/reportManagerUtils.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/client/util/reportManager/ReportManager.tsx b/src/client/util/reportManager/ReportManager.tsx index e684bd637..e6de410a7 100644 --- a/src/client/util/reportManager/ReportManager.tsx +++ b/src/client/util/reportManager/ReportManager.tsx @@ -128,6 +128,7 @@ export class ReportManager extends React.Component<{}> { let formattedLinks: string[] = []; if (this.formData.mediaFiles.length > 0) { const links = await uploadFilesToServer(this.formData.mediaFiles); + console.log('Links', links); if (links) { formattedLinks = links; } diff --git a/src/client/util/reportManager/reportManagerUtils.ts b/src/client/util/reportManager/reportManagerUtils.ts index b95417aa1..1bbb60f7a 100644 --- a/src/client/util/reportManager/reportManagerUtils.ts +++ b/src/client/util/reportManager/reportManagerUtils.ts @@ -111,6 +111,7 @@ export const uploadFilesToServer = async (mediaFiles: FileData[]): Promise<strin try { // need to always upload to browndash const links = await Networking.UploadFilesToServer(mediaFiles.map(file => ({ file: file.file }))); + console.log('Raw links', links); return (links ?? []).map(getServerPath).map(fileLinktoServerLink); } catch (err) { if (err instanceof Error) { |
