Merge pull request #943 from SkynetLabs/lift-frontend-1gb-upload-limit
lift 1gb upload limit from frontend code
This commit is contained in:
commit
a2f82c0a8f
|
@ -182,13 +182,6 @@ const Uploader = () => {
|
||||||
onFileStateChange(file, { status, progress });
|
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 () => {
|
const upload = async () => {
|
||||||
try {
|
try {
|
||||||
let response;
|
let response;
|
||||||
|
|
Reference in New Issue