Controllers\xAPI\DocumentController::getAttachedContent PHP Method

getAttachedContent() public method

Retrieves attached file content
public getAttachedContent ( string $name = 'content' ) : Array
$name string Field name
return Array
    public function getAttachedContent($name = 'content')
    {
        if (\LockerRequest::hasParam('method') || $this->method === 'POST') {
            return $this->getPostContent($name);
        } else {
            $contentType = \LockerRequest::header('Content-Type', 'text/plain');
            return ['content' => \LockerRequest::getContent(), 'contentType' => $contentType];
        }
    }