Skip to content

Commit

Permalink
Finish 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
todstoychev committed Jun 7, 2016
2 parents be4cdb7 + dedac9f commit 3ee3023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Icr.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ class Icr
* @param UploadedFile $uploadedFile
* @param string $context
* @param string $storage
* @param null|string $fileName
*
* @return \Exception|string
* @throws \Exception
*/
public static function uploadImage(UploadedFile $uploadedFile, $context, $storage = 'local', $fileName = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function upload($context, $file, $extension, FilesystemAdapter $filesyste
{
// Upload original image
$fileName = $this->fileManager->setFileSystemAdapter($filesystemAdapter)
->uploadFile($file, $extension, $context, $fileName);
->uploadFile($file, $extension, $context, null, $fileName);

try {
$this->processSizes($file, $fileName, $context, $extension, $filesystemAdapter);
Expand Down

0 comments on commit 3ee3023

Please sign in to comment.