diff --git a/src/Models/Upload.php b/src/Models/Upload.php index 610ad2833..1b738a14f 100644 --- a/src/Models/Upload.php +++ b/src/Models/Upload.php @@ -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))