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) {