Fixed problems with uploaded files
This commit is contained in:
parent
ff2bfd0b3d
commit
36a82c2863
1 changed files with 2 additions and 2 deletions
|
@ -296,7 +296,7 @@ class PostController
|
|||
$this->context->subTitle = 'upload';
|
||||
PrivilegesHelper::confirmWithException($this->context->user, Privilege::UploadPost);
|
||||
|
||||
if (isset($_FILES['file']))
|
||||
if (!empty($_FILES['file']['name']))
|
||||
{
|
||||
/* safety */
|
||||
$suppliedSafety = intval(InputHelper::get('safety'));
|
||||
|
@ -454,7 +454,7 @@ class PostController
|
|||
|
||||
|
||||
/* thumbnail */
|
||||
if (isset($_FILES['thumb']))
|
||||
if (!empty($_FILES['thumb']['name']))
|
||||
{
|
||||
PrivilegesHelper::confirmWithException($this->context->user, Privilege::EditPostThumb, $secondary);
|
||||
$suppliedFile = $_FILES['thumb'];
|
||||
|
|
Loading…
Reference in a new issue