Skip to content

Commit

Permalink
Merge pull request #37 from sliit-foss/development
Browse files Browse the repository at this point in the history
Chore: restricted submission size limit to 25mb
  • Loading branch information
Akalanka47000 authored Oct 5, 2023
2 parents eeac7d9 + 4f108bd commit 3a7eac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/layout/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const Footer = ({ className }) => {
<div className="flex flex-col items-center md:items-start gap-y-5 col-start-1">
<FOSS />
<p className="md:w-[320px] px-2 sm:px-0 text-sm text-center md:text-left text-gray-500 opacity-80 font-consolas">
Welcome to the SLIIT FOSS Community. We&apos;re a group of volunteers who believe in the usage of Free and Open
Source Software (FOSS)
Welcome to the SLIIT FOSS Community. We&apos;re a group of volunteers who believe in the usage of Free and
Open Source Software (FOSS)
</p>
<div className="font-semibold text-[20px] font-cabinet">CONNECT WITH US</div>
<div className="flex space-x-3 flex-shrink-0 -ml-0.5">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/question-details.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export default function QuestionDetails() {
setUploading(true);
try {
const file = e.target.files[0];
if (file.size > 104857600)
return toast({ variant: "destructive", title: "Submission size should be less than 100MB" });
if (file.size > 26214400)
return toast({ variant: "destructive", title: "Submission size should be less than 25MB" });
if (!["zip"].includes(file.name?.split(".").pop()))
return toast({ variant: "destructive", title: "Submission should be a zip archive" });
const url = await uploadFile(file);
Expand Down

0 comments on commit 3a7eac4

Please sign in to comment.