src/Request/SlimRequest.php
/**
     * Checks if request headers are partial upload headers
     *
     * @param SlimPHPRequest $slRequest Slim request object
     *
     * @return string
     */
Checks if request headers are partial upload headers
@param SlimPHPRequest $slRequest Slim request object

@return string
Checks if request headers are partial upload headers @param SlimPHPRequest $slRequest Slim request object @return string
static public function checkPartialUpload(SlimPHPRequest $slRequest) :string
    {
        if($slRequest->hasHeader('Content-Type') === true) {
            $contentType = $slRequest->getHeader('Content-Type');
            if(stripos($contentType[0], static::HEADERMULTI) !== false) {
                $posBoundary = stripos($contentType[0], static::BOUNDARYSPLIT);
                $posBoundary = $posBoundary + strlen(static::BOUNDARYSPLIT);
                return static::FIXEDBOUNDARY.substr($contentType[0], $posBoundary);
            }
        }
        return '';
    }
static public function checkPartialUpload ( SlimPHPRequest $ slRequest ) : string { if ( $ slRequest -> hasHeader ( 'Content-Type' ) === true ) { $ contentType = $ slRequest -> getHeader ( 'Content-Type' ) ; if ( stripos ( $ contentType [ 0 ] , static :: HEADERMULTI ) !== false ) { $ posBoundary = stripos ( $ contentType [ 0 ] , static :: BOUNDARYSPLIT ) ; $ posBoundary = $ posBoundary + strlen ( static :: BOUNDARYSPLIT ) ; return static :: FIXEDBOUNDARY . substr ( $ contentType [ 0 ] , $ posBoundary ) ; } } return '' ; }
Checks if request headers are partial upload headers
 @param SlimPHPRequest $slRequest Slim request object
Checks if request headers are partial upload headers @param SlimPHPRequest $slRequest Slim request object