UploadedFile.php
function getStream()
    {
        if ($err = $this->getError() !== UPLOAD_ERR_OK)
            // TODO Handle Upload With Exception Error
            throw new \RuntimeException(sprintf(
                'Cannot retrieve stream due to upload error. error: (%s).'
                , getUploadErrorMessageFromCode($err)
            ));

        if ($this->isFileMoved)
            throw new \RuntimeException('Cannot retrieve stream after it has already been moved');

        if ($this->stream)
            return $this->stream;

        $givenFileResource = $this->_c_givenResource;
        if (!$givenFileResource instanceof StreamInterface)
            $givenFileResource = new Stream($givenFileResource, 'r');
        
        return $this->stream = $givenFileResource;
    }
function getStream()
    {
        if ($err = $this->getError() !== UPLOAD_ERR_OK)
            // TODO Handle Upload With Exception Error
            throw new \RuntimeException(sprintf(
                'Cannot retrieve stream due to upload error. error: (%s).'
                , getUploadErrorMessageFromCode($err)
            ));

        if ($this->isFileMoved)
            throw new \RuntimeException('Cannot retrieve stream after it has already been moved');

        if ($this->stream)
            return $this->stream;

        $givenFileResource = $this->_c_givenResource;
        if (!$givenFileResource instanceof StreamInterface)
            $givenFileResource = new Stream($givenFileResource, 'r');
        
        return $this->stream = $givenFileResource;
    }
function getStream ( ) { if ( $ err = $ this -> getError ( ) !== UPLOAD_ERR_OK ) // TODO Handle Upload With Exception Error throw new \ RuntimeException ( sprintf ( 'Cannot retrieve stream due to upload error. error: (%s).' , getUploadErrorMessageFromCode ( $ err ) ) ) ; if ( $ this -> isFileMoved ) throw new \ RuntimeException ( 'Cannot retrieve stream after it has already been moved' ) ; if ( $ this -> stream ) return $ this -> stream ; $ givenFileResource = $ this -> _c_givenResource ; if ( ! $ givenFileResource instanceof StreamInterface ) $ givenFileResource = new Stream ( $ givenFileResource , 'r' ) ; return $ this -> stream = $ givenFileResource ; }
Get Streamed Object Of Uploaded File

@return StreamInterface
Get Streamed Object Of Uploaded File