src/Foundation/Uploads/Uploader.php
/**
     * Uploads a single file and returns the filepath if successful.
     * Returns false on failure.
     *
     * @param UploadedFile $file
     * @param array        $transformConfig
     * @param              $appendedPath
     *
     * @return bool|string
     */
Uploads a single file and returns the filepath if successful.
Returns false on failure.



@return bool|string
Uploads a single file and returns the filepath if successful . Returns false on failure . @return bool|string
public function uploadFile(UploadedFile $file, $transformConfig = [], $appendedPath = null)
    {
        if ($file->isValid()) {
            return $this->upload(new SymfonyFile($file), $transformConfig, $appendedPath);
        }
        return false;
    }
public function uploadFile ( UploadedFile $ file , $ transformConfig = [ ] , $ appendedPath = null ) { if ( $ file -> isValid ( ) ) { return $ this -> upload ( new SymfonyFile ( $ file ) , $ transformConfig , $ appendedPath ) ; } return false ; }
Uploads a single file and returns the filepath if successful.
Uploads a single file and returns the filepath if successful .