Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/api/submission/submission.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,10 @@ export class SubmissionService {
!!file &&
((typeof file.size === 'number' && file.size > 0) ||
(file.buffer && file.buffer.length > 0));
const isFileSubmission = hasUploadedFile;
const hasS3Url =
typeof body.url === 'string' &&
body.url.includes('https://s3.amazonaws.com');
const isFileSubmission = hasUploadedFile || hasS3Url;

// Derive common metadata if available
let systemFileName: string | undefined;
Expand Down