mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
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…
x
Reference in New Issue
Block a user