Foxit PDF SDK for Web

How to configure MIME types in IIS

When using IIS to run Foxit PDF SDK for WEB, we may encounter some resource file parsing errors that lead to access failure. At this time, we need to configure the MIME type of IIS.

Let’s take Windows Server 2019 for example, here are the steps:

1. Open the Microsoft IIS management console, then select the local compute name, and click the MIME Types item.

2. Click New or Add button.

3. In the Extension box, type .wasm, and type application/wasm to the MIME type box.

And here are the common MIME types that need to be configured:

<mimeMap fileExtension=".wasm" mimeType="application/wasm" />

<mimeMap fileExtension=".mem" mimeType="text/plain" />

<mimeMap fileExtension=".brotli" mimeType=“application/octet-stream" />

<mimeMap fileExtension=".json" mimeType="application/json" />

4. In version 9.x, you also need to configure an additional mimetype under the lib/jr-engine/cmaps and lib/jr-engine/FoxitFonts path

<mimeMap fileExtension="." mimeType="application/octet-stream" />

Updated on January 4, 2024

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: