diff --git a/Entity/UploadedFile.php b/Entity/UploadedFile.php index e8b935ea38600ea897e16d058e685fb824df2b9f..2d1df85e4d038ade4cdf6a768ce835081599bc19 100644 --- a/Entity/UploadedFile.php +++ b/Entity/UploadedFile.php @@ -289,7 +289,7 @@ class UploadedFile implements UploadedFileInterface // Déplace le fichier hors de l'orphelinat quand on passe d'orphelin à nouveau if($this->etat === self::ETAT_ORPHELIN && $etat === self::ETAT_NORMAL && 0 === strpos($this->path, self::ORPHAN_PREFIX)) { - $this->path = substr($this->path, strlen($this->path)); + $this->path = substr($this->path, strlen(self::ORPHAN_PREFIX)); } $this->etat = $etat;