mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Apply fixes from StyleCI (#1242)
Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
parent
0525597a15
commit
c57233414f
1 changed files with 17 additions and 14 deletions
|
@ -738,10 +738,13 @@ class Attach
|
||||||
switch($_FILES['fileupload']['error']) {
|
switch($_FILES['fileupload']['error']) {
|
||||||
case UPLOAD_ERR_NO_FILE:
|
case UPLOAD_ERR_NO_FILE:
|
||||||
bb_die('No file content sent');
|
bb_die('No file content sent');
|
||||||
|
// no break
|
||||||
case UPLOAD_ERR_INI_SIZE:
|
case UPLOAD_ERR_INI_SIZE:
|
||||||
bb_die('upload_max_filesize setting: ' . ini_get('upload_max_filesize'));
|
bb_die('upload_max_filesize setting: ' . ini_get('upload_max_filesize'));
|
||||||
|
// no break
|
||||||
case UPLOAD_ERR_CANT_WRITE:
|
case UPLOAD_ERR_CANT_WRITE:
|
||||||
bb_die('Failed to write file to disk, check permissions');
|
bb_die('Failed to write file to disk, check permissions');
|
||||||
|
// no break
|
||||||
case UPLOAD_ERR_PARTIAL:
|
case UPLOAD_ERR_PARTIAL:
|
||||||
bb_die('The uploaded file was only partially uploaded');
|
bb_die('The uploaded file was only partially uploaded');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue