Parcourir la source

[Backend] Duplicate imgae

develop
Fab il y a 3 ans
Parent
révision
496c5ff32d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      ShopBundle/Services/UtilsProcess.php

+ 1
- 1
ShopBundle/Services/UtilsProcess.php Voir le fichier

@@ -93,7 +93,7 @@ class UtilsProcess


if ($entity->getImage() && file_exists($basePath . $entity->getImage())) {
$extension = pathinfo($basePath . $entity->getImage(), PATHINFO_EXTENSION);
$extension = strtolower(pathinfo($basePath . $entity->getImage(), PATHINFO_EXTENSION));

if ($extension == "jpg" || $extension == "png" || $extension == "gif") {
$newImage = md5(uniqid()) . '.' . $extension;

Chargement…
Annuler
Enregistrer