mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 09:12:14 +00:00
upload-limit v0.2
This commit is contained in:
@@ -258,7 +258,7 @@ class Editor
|
||||
//Size of file
|
||||
$file_size = File::size($file_path);
|
||||
//File size handling
|
||||
if($file_size > get_setting('upload_limit') * 1000000) abort(413);
|
||||
if($file_size > format_bytes(get_setting('upload_limit')) && get_setting('upload_limit') !== null) abort(413);
|
||||
|
||||
// If last then process file
|
||||
if ($request->boolean('is_last')) {
|
||||
|
||||
Reference in New Issue
Block a user