소스 검색

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

Loading…
취소
저장