src/Processor.php
public function upload($context, $file, $extension, FilesystemAdapter $filesystemAdapter, $fileName)
    {
        // Upload original image
        $fileName = $this->fileManager->setFileSystemAdapter($filesystemAdapter)
            ->uploadFile($file, $extension, $context, null, $fileName);
        $this->processSizes($file, $fileName, $context, $extension, $filesystemAdapter);

        return $fileName;
    }
public function upload($context, $file, $extension, FilesystemAdapter $filesystemAdapter, $fileName)
    {
        // Upload original image
        $fileName = $this->fileManager->setFileSystemAdapter($filesystemAdapter)
            ->uploadFile($file, $extension, $context, null, $fileName);
        $this->processSizes($file, $fileName, $context, $extension, $filesystemAdapter);

        return $fileName;
    }
public function upload ( $ context , $ file , $ extension , FilesystemAdapter $ filesystemAdapter , $ fileName ) { // Upload original image $ fileName = $ this -> fileManager -> setFileSystemAdapter ( $ filesystemAdapter ) -> uploadFile ( $ file , $ extension , $ context , null , $ fileName ) ; $ this -> processSizes ( $ file , $ fileName , $ context , $ extension , $ filesystemAdapter ) ; return $ fileName ; }
Handles image upload

@param string $context
@param string $file
@param string $extension
@param FilesystemAdapter $filesystemAdapter
@param string $fileName

@return string
@throws \Exception
Handles image upload