public function httpPropfind(RequestInterface $request, ResponseInterface $hR, $tempLocation)
    {
        if (!file_exists($tempLocation)) {
            return;
        }

        $hR->setHeader('X-Sabre-Temp', 'true');
        $hR->setStatus(207);
        $hR->setHeader('Content-Type', 'application/xml; charset=utf-8');

        $properties = [
            'href' => $request->getPath(),
            200 => [
                '{DAV:}getlastmodified' => new Xml\Property\GetLastModified(filemtime($tempLocation)),
                '{DAV:}getcontentlength' => filesize($tempLocation),
                '{DAV:}resourcetype' => new Xml\Property\ResourceType(null),
                '{'.Server::NS_SABREDAV.'}tempFile' => true,
            ],
        ];

        $data = $this->server->generateMultiStatus([$properties]);
        $hR->setBody($data);

        return false;
    }
public function httpPropfind(RequestInterface $request, ResponseInterface $hR, $tempLocation)
    {
        if (!file_exists($tempLocation)) {
            return;
        }

        $hR->setHeader('X-Sabre-Temp', 'true');
        $hR->setStatus(207);
        $hR->setHeader('Content-Type', 'application/xml; charset=utf-8');

        $properties = [
            'href' => $request->getPath(),
            200 => [
                '{DAV:}getlastmodified' => new Xml\Property\GetLastModified(filemtime($tempLocation)),
                '{DAV:}getcontentlength' => filesize($tempLocation),
                '{DAV:}resourcetype' => new Xml\Property\ResourceType(null),
                '{'.Server::NS_SABREDAV.'}tempFile' => true,
            ],
        ];

        $data = $this->server->generateMultiStatus([$properties]);
        $hR->setBody($data);

        return false;
    }
public function httpPropfind ( RequestInterface $ request , ResponseInterface $ hR , $ tempLocation ) { if ( ! file_exists ( $ tempLocation ) ) { return ; } $ hR -> setHeader ( 'X-Sabre-Temp' , 'true' ) ; $ hR -> setStatus ( 207 ) ; $ hR -> setHeader ( 'Content-Type' , 'application/xml; charset=utf-8' ) ; $ properties = [ 'href' => $ request -> getPath ( ) , 200 => [ '{DAV:}getlastmodified' => new Xml \ Property \ GetLastModified ( filemtime ( $ tempLocation ) ) , '{DAV:}getcontentlength' => filesize ( $ tempLocation ) , '{DAV:}resourcetype' => new Xml \ Property \ ResourceType ( null ) , '{' . Server :: NS_SABREDAV . '}tempFile' => true , ] , ] ; $ data = $ this -> server -> generateMultiStatus ( [ $ properties ] ) ; $ hR -> setBody ( $ data ) ; return false ; }
This method handles the PROPFIND method.

It's a very lazy method, it won't bother checking the request body
for which properties were requested, and just sends back a default
set of properties.

@param RequestInterface  $request
@param ResponseInterface $hR
@param string            $tempLocation

@return bool
This method handles the PROPFIND method .