We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3c3486 commit b70ce14Copy full SHA for b70ce14
src/app/api/tasks/[id]/route.ts
@@ -81,7 +81,9 @@ export async function PUT(
81
const Key =
82
file.type === 'application/pdf'
83
? `statements/pdf/${task.id}.pdf`
84
- : `testcases/${task.id}/${file.path}`
+ : file.type === 'application/zip'
85
+ ? `statements/attachments/${task.id}.zip`
86
+ : `testcases/${task.id}/${file.path}`
87
const url = await getSignedUrl(
88
s3Client,
89
new PutObjectCommand({
src/components/Admin/Assessments/SubmitComponent.tsx
@@ -26,6 +26,10 @@ const SubmitComponent = () => {
26
<label>Is single file?</label>
27
</div>
28
29
+ <p>
30
+ You can also upload statements by uploading pdf file and public
31
+ attachments by uploading zip file
32
+ </p>
33
<UploadBox />
34
35
0 commit comments