mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-16 06:09:07 +00:00
Increase the size limit of firmware to 50Mb
This commit is contained in:
parent
e70f12af9e
commit
152670a371
@ -35,9 +35,9 @@ function lvfs_upload_firmware($db, $auth_token, $uploaddir, $file) {
|
|||||||
$uri = $uri . 'authkey=False&';
|
$uri = $uri . 'authkey=False&';
|
||||||
}
|
}
|
||||||
|
|
||||||
# check size
|
# check size < 50Mb
|
||||||
$size = $file['size'];
|
$size = $file['size'];
|
||||||
if ($size > 102400 || $size < 1280) {
|
if ($size > 50000000 || $size < 1280) {
|
||||||
$success = False;
|
$success = False;
|
||||||
$uri = $uri . 'sizecheck=False&';
|
$uri = $uri . 'sizecheck=False&';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user