src/MediaUploader.php
public function verifyFile()
    {
        $this->verifySource();
        $this->verifyFileSize($this->source->size());
        $this->verifyMimeType($this->source->mimeType());
        $this->verifyExtension($this->source->extension());
    }
public function verifyFile()
    {
        $this->verifySource();
        $this->verifyFileSize($this->source->size());
        $this->verifyMimeType($this->source->mimeType());
        $this->verifyExtension($this->source->extension());
    }
public function verifyFile ( ) { $ this -> verifySource ( ) ; $ this -> verifyFileSize ( $ this -> source -> size ( ) ) ; $ this -> verifyMimeType ( $ this -> source -> mimeType ( ) ) ; $ this -> verifyExtension ( $ this -> source -> extension ( ) ) ; }
Verify if file is valid
@throws \Plank\Mediable\Exceptions\MediaUpload\ConfigurationException If no source is provided
@throws \Plank\Mediable\Exceptions\MediaUpload\FileNotFoundException If the source is invalid
@throws \Plank\Mediable\Exceptions\MediaUpload\FileSizeException If the file is too large
@throws \Plank\Mediable\Exceptions\MediaUpload\FileNotSupportedException If the mime type is not allowed
@throws \Plank\Mediable\Exceptions\MediaUpload\FileNotSupportedException If the file extension is not allowed
@return void
Verify if file is valid