Merge pull request #943 from SkynetLabs/lift-frontend-1gb-upload-limit

lift 1gb upload limit from frontend code
This commit is contained in:
Karol Wypchło 2021-07-06 11:49:05 +02:00 committed by GitHub
commit a2f82c0a8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;