Skip to content

Commit

Permalink
Added extension clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
todstoychev committed Jul 24, 2016
2 parents 11f05ed + 05f2bd7 commit 1b85099
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Manager/FileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function uploadFile($file, $extension, $context = null, $sizeName = null,
$hash = $this->generate($this->filesystemAdapter, $extension, $path);
$fileName = $hash . '.' . $extension;
} else {
$fileName = preg_replace('/\.[A-z]{3,4}$/', '',$fileName);
$fileName = $fileName . '.' . $extension;
}

Expand Down

0 comments on commit 1b85099

Please sign in to comment.