1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-12 15:44:07 +01:00

Fix primo caricamento foto profilo

This commit is contained in:
loviuz 2019-09-09 09:53:51 +02:00
parent efe912883f
commit 94a3acbd57

View File

@ -47,6 +47,7 @@ class Upload extends Model
$model->filename = $filename; $model->filename = $filename;
// Creazione file fisico // Creazione file fisico
directory($directory);
if ( if (
(is_uploaded_file($source['tmp_name']) && !move_uploaded_file($source['tmp_name'], $directory.'/'.$filename)) || (is_uploaded_file($source['tmp_name']) && !move_uploaded_file($source['tmp_name'], $directory.'/'.$filename)) ||
(is_string($source) && !copy($source, $directory.'/'.$filename)) (is_string($source) && !copy($source, $directory.'/'.$filename))