ソースを参照

[Backend] Duplicate imgae

develop
Fab 3年前
コミット
496c5ff32d
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      ShopBundle/Services/UtilsProcess.php

+ 1
- 1
ShopBundle/Services/UtilsProcess.php ファイルの表示

@@ -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;

読み込み中…
キャンセル
保存