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:
parent
efe912883f
commit
94a3acbd57
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user