mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-12 07:33:47 +01:00
Fix primo caricamento foto profilo
This commit is contained in:
parent
efe912883f
commit
94a3acbd57
@ -47,6 +47,7 @@ class Upload extends Model
|
||||
$model->filename = $filename;
|
||||
|
||||
// Creazione file fisico
|
||||
directory($directory);
|
||||
if (
|
||||
(is_uploaded_file($source['tmp_name']) && !move_uploaded_file($source['tmp_name'], $directory.'/'.$filename)) ||
|
||||
(is_string($source) && !copy($source, $directory.'/'.$filename))
|
||||
|
Loading…
Reference in New Issue
Block a user