fix filemanager
This commit is contained in:
parent
e3f9d53775
commit
11a3d1f0c4
|
@ -151,7 +151,7 @@ function upload_file($upload_file_or_zip, $default_real_directory, $destination_
|
|||
// Copy file to directory and change name.
|
||||
$nombre_archivo = sprintf('%s/%s', $real_directory, $filename);
|
||||
try {
|
||||
if (isset($_FILES['file']['type']) && empty($_FILES['file']['type']) === false) {
|
||||
if (isset($_FILES['file']['type']) === true && empty($_FILES['file']['type']) === false) {
|
||||
$type = $_FILES['file']['type'];
|
||||
} else {
|
||||
$type = strtolower(pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION));
|
||||
|
|
Loading…
Reference in New Issue