lift 1gb upload limit from frontend code

This commit is contained in:
Karol Wypchlo 2021-07-06 11:40:09 +02:00
parent 692612d2b1
commit a4e75cff55
1 changed files with 0 additions and 7 deletions

View File

@ -182,13 +182,6 @@ const Uploader = () => {
onFileStateChange(file, { status, progress });
};
// Reject files larger than our hard limit of 1 GB with proper message
if (file.size > bytes("1 GB")) {
onFileStateChange(file, { status: "error", error: "This file size exceeds the maximum allowed size of 1 GB." });
return;
}
const upload = async () => {
try {
let response;