Skip to content

Can't upload large zip testcase #28

Description

@c3mzz

When admin attempt to upload large zip testcase (200MB+ compressed)

• The website becomes lags for all users for 1–3 minutes
• The interface displays "บันทึกสำเร็จ"
• The database and testcases remain unchanged

For example, if I update a problem's score (from 100 to 101) and testcases at the same time, the problem's score
still remains 100 and the testcase is empty.

Issue 1: False success toast notification

Adding this in apps/web/src/pages/admin/index.tsx might solve the problem:

if (response.status === 200) {
    toast.success('บันทึกสำเร็จ', { id: toastId })
}
else {
    toast.error('ไม่สามารถบันทึกได้', { id: toastId })
}

Issue 2: Database and testcases remain unchanged

My guess is Cloudflare 100 second timeout for HTTP responses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions