mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 09:14:40 +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&';
|
||||
}
|
||||
|
||||
# check size
|
||||
# check size < 50Mb
|
||||
$size = $file['size'];
|
||||
if ($size > 102400 || $size < 1280) {
|
||||
if ($size > 50000000 || $size < 1280) {
|
||||
$success = False;
|
||||
$uri = $uri . 'sizecheck=False&';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user