Skip to content

Commit

Permalink
Merged hotfix/v0.1.2 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
todstoychev committed Mar 15, 2016
2 parents 8c920f7 + dcd6ab8 commit 5a09c4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,19 @@ public function __construct(
* @param FilesystemAdapter $filesystemAdapter
*
* @return string
* @throws \Exception
*/
public function upload($context, $file, $extension, FilesystemAdapter $filesystemAdapter)
{
// Upload original image
$fileName = $this->fileManager->setFileSystemAdapter($filesystemAdapter)
->uploadFile($file, $extension, $context);

$this->processSizes($file, $fileName, $context, $extension, $filesystemAdapter);
try {
$this->processSizes($file, $fileName, $context, $extension, $filesystemAdapter);
} catch (\Exception $e) {
throw $e;
}

return $fileName;
}
Expand Down

0 comments on commit 5a09c4b

Please sign in to comment.