private function computePartSize($partSize)
    {
        $partSize = (integer)$partSize;
        if ($partSize <= self::OSS_MIN_PART_SIZE) {
            $partSize = self::OSS_MIN_PART_SIZE;
        } elseif ($partSize > self::OSS_MAX_PART_SIZE) {
            $partSize = self::OSS_MAX_PART_SIZE;
        }
        return $partSize;
    }
private function computePartSize($partSize)
    {
        $partSize = (integer)$partSize;
        if ($partSize <= self::OSS_MIN_PART_SIZE) {
            $partSize = self::OSS_MIN_PART_SIZE;
        } elseif ($partSize > self::OSS_MAX_PART_SIZE) {
            $partSize = self::OSS_MAX_PART_SIZE;
        }
        return $partSize;
    }
private function computePartSize ( $ partSize ) { $ partSize = ( integer ) $ partSize ; if ( $ partSize <= self :: OSS_MIN_PART_SIZE ) { $ partSize = self :: OSS_MIN_PART_SIZE ; } elseif ( $ partSize > self :: OSS_MAX_PART_SIZE ) { $ partSize = self :: OSS_MAX_PART_SIZE ; } return $ partSize ; }
Gets the part size according to the preferred part size.
If the specified part size is too small or too big, it will return a min part or max part size instead.
Otherwise returns the specified part size.
@param int $partSize
@return int
Gets the part size according to the preferred part size . If the specified part size is too small or too big it will return a min part or max part size instead . Otherwise returns the specified part size .