src/Uploader.php
protected function runUpload($file)
    {
        $this->provider->setFile($file);

        if (! $this->provider->isValid()) {
            throw new InvalidFileException("Given file [{$file}] is invalid.");
        }

        $filename = $this->getFullFileName($this->provider);

        if ($this->filesystem->disk($this->disk)->put($filename, $this->provider->getContents(), $this->getVisibility())) {
            return $filename;
        }

        return false;
    }
protected function runUpload($file)
    {
        $this->provider->setFile($file);

        if (! $this->provider->isValid()) {
            throw new InvalidFileException("Given file [{$file}] is invalid.");
        }

        $filename = $this->getFullFileName($this->provider);

        if ($this->filesystem->disk($this->disk)->put($filename, $this->provider->getContents(), $this->getVisibility())) {
            return $filename;
        }

        return false;
    }
Upload the given file and returns the filename if succeed.

@param  string  $file
@return string|bool

@throws \Rymanalu\LaravelSimpleUploader\InvalidFileException