Error when want to see an uploadesd document (docx, pptx, etc)

Can someone tell me how to solve this problem?

In documents I upload a word document (.docx)
When I tried to view this document receive this error.

Fatal error: Uncaught Error: Call to undefined function mime_content_type() in F:\SuiteCRM\download.php:182 Stack trace: #0 F:\SuiteCRM\include\MVC\Controller\SugarController.php(1020): require_once() #1 F:\SuiteCRM\include\MVC\Controller\SugarController.php(468): SugarController->handleEntryPoint() #2 F:\SuiteCRM\include\MVC\Controller\SugarController.php(373): SugarController->process() #3 F:\SuiteCRM\include\MVC\SugarApplication.php(113): SugarController->execute() #4 F:\SuiteCRM\index.php(52): SugarApplication->execute() #5 {main} thrown in F:\SuiteCRM\download.php on line 182

I’m using Suite CRM
Versión 7.10.9
Sugar Versión 6.5.25 (Compilación 344)
PHP version 7.0.32
MYSQLServer 5.7

Hosted in Azure over Windows 2008 R2 Datecenter

Thanks.

See

https://github.com/salesagility/SuiteCRM/issues/1863

and add your voice there. Thanks

Hi. Thanks.

But this fix didn’t work to me because my download.php has got those updates.

    // Fix for issue 1506 and issue 1304 : IE11 and Microsoft Edge cannot display generic 'application/octet-stream' (which is defined as "arbitrary binary data" in RFC 2046).
    $mime_type = mime_content_type($local_location);
    if ($mime_type == null || $mime_type == '') {
        $mime_type = 'application/octet-stream';
    }

Can you give another help please?

Hi. Resolved!!

Deleted these lines

// Fix for issue 1506 and issue 1304 : IE11 and Microsoft Edge cannot display generic ‘application/octet-stream’ (which is defined as “arbitrary binary data” in RFC 2046).
$mime_type = mime_content_type($local_location);
if ($mime_type == null || $mime_type == ‘’) {
$mime_type = ‘application/octet-stream’;
}

and let this one

$mime_type = ‘application/octet-stream’;

now it’s working

Thanks