mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: allow zip file upload
This commit is contained in:
parent
def42caec1
commit
b1d05168b6
4 changed files with 4 additions and 4 deletions
|
|
@ -19,5 +19,5 @@ async def upload_submission_file(
|
|||
org_uuid,
|
||||
contents,
|
||||
f"{name_in_disk}",
|
||||
["pdf", "docx", "mp4", "jpg", "jpeg", "png", "pptx"],
|
||||
["pdf", "docx", "mp4", "jpg", "jpeg", "png", "pptx", "zip"],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -19,5 +19,5 @@ async def upload_reference_file(
|
|||
org_uuid,
|
||||
contents,
|
||||
f"{name_in_disk}",
|
||||
["pdf", "docx", "mp4", "jpg", "jpeg", "png", "pptx"],
|
||||
["pdf", "docx", "mp4", "jpg", "jpeg", "png", "pptx", "zip"],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ export function AssignmentTaskGeneralEdit() {
|
|||
<FormLabelAndMessage label="Reference file" message={formik.errors.hint} />
|
||||
<div className='flex space-x-1.5 text-xs items-center text-gray-500 '>
|
||||
<Info size={16} />
|
||||
<p>Allowed formats : pdf, docx, mp4, jpg, jpeg, png, pptx</p>
|
||||
<p>Allowed formats : pdf, docx, mp4, jpg, jpeg, png, pptx, zip</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ export default function TaskFileObject({ view, user_id, assignmentTaskUUID }: Ta
|
|||
)}
|
||||
<div className='flex pt-4 font-semibold space-x-1.5 text-xs items-center text-gray-500 '>
|
||||
<Info size={16} />
|
||||
<p>Allowed formats : pdf, docx, mp4, jpg, jpeg, png, pptx</p>
|
||||
<p>Allowed formats : pdf, docx, mp4, jpg, jpeg, png, pptx, zip</p>
|
||||
</div>
|
||||
{isLoading ? (
|
||||
<div className="flex justify-center items-center">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue