Skip to content

Commit 9a5055a

Browse files
authored
Merge pull request #136 from topcoder-platform/performance
Minor tweak for better support of the upload panel in CA
2 parents 4202154 + 570451d commit 9a5055a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/submission/submission.service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,10 @@ export class SubmissionService {
16491649
!!file &&
16501650
((typeof file.size === 'number' && file.size > 0) ||
16511651
(file.buffer && file.buffer.length > 0));
1652-
const isFileSubmission = hasUploadedFile;
1652+
const hasS3Url =
1653+
typeof body.url === 'string' &&
1654+
body.url.includes('https://s3.amazonaws.com');
1655+
const isFileSubmission = hasUploadedFile || hasS3Url;
16531656

16541657
// Derive common metadata if available
16551658
let systemFileName: string | undefined;

0 commit comments

Comments
 (0)