Instagram\API\Framework\Request::addFile PHP Method

addFile() public method

Add File to the Request
public addFile ( $key, $file )
$key string File Key
$file RequestFile
    public function addFile($key, $file)
    {
        $this->params[$key] = new \CURLFile($file->getPath(), $file->getMime(), $file->getName());
    }