Increase the size limit of firmware to 50Mb

This commit is contained in:
Richard Hughes 2015-07-23 09:13:58 +01:00
parent e70f12af9e
commit 152670a371

View File

@ -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&';
}