Repository navigation
Failed to load PDF file #708
|
Hi; I installed BentoPDF with the Proxmox Helper Script. Now i get a "Failed to load PDF file." Error wenn uploading an PDF Tested multiple PDFs. What can I do? |
Replies: 3 comments 16 replies
|
I have the same issue since last update, I am running it behind cloudflare tunnel. |
|
This issue probably comes from our pdf.js update. In recent updates, they removed polyfills to make it compatible with older browsers |
|
I suggest updating your browser to the latest version and trying again. Let me know if it still does not work |

Your nginx is serving the .mjs PDF worker file as application/octet-stream (the Proxmox helper script's MIME edit doesn't take effect on all installs), which the browser refuses to execute as an ES module
A quick fix:
run
sudo sed -i 's|application/javascript\s\+js;|application/javascript js mjs;|' /etc/nginx/mime.types && sudo systemctlreload nginx inside your container a permanent fix that bypasses this entirely is shipping in the next BentoPDF release.