From 9006459a15ec0121088e3d80d2eddc3bae50fc6f Mon Sep 17 00:00:00 2001 From: Maxime Renou Date: Thu, 21 Feb 2019 19:02:54 +0100 Subject: [PATCH] yup --- StorageBundle/Storage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/StorageBundle/Storage.php b/StorageBundle/Storage.php index b484855..d3a9b89 100644 --- a/StorageBundle/Storage.php +++ b/StorageBundle/Storage.php @@ -123,6 +123,7 @@ class Storage $camel = ucfirst(Container::camelize($attribute)); if ($file instanceof UploadedFile) { + $file_hash .= strlen($file->getExtension()) ? '.'.$file->getExtension() : ''; if (!is_null($storage_annotation->mime)) { $valid = true; if (count(explode('/', $storage_annotation->mime)) > 1) {