# Error reading PDF file in web dev, but script console successfully reads file

**URL:** <https://forum.inductiveautomation.com/t/error-reading-pdf-file-in-web-dev-but-script-console-successfully-reads-file/100107>\
**Category:** Ignition\
**Tags:** webdev, perspective\
**Created:** [December 20, 2024, 4:41pm UTC](https://forum.inductiveautomation.com/t/error-reading-pdf-file-in-web-dev-but-script-console-successfully-reads-file/100107 "2024-12-20T16:41:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alyssa\_Lynch](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Alyssa\_Lynch](https://forum.inductiveautomation.com/u/Alyssa_Lynch)\
**Post date:** [December 20, 2024, 4:41pm UTC](https://forum.inductiveautomation.com/t/error-reading-pdf-file-in-web-dev-but-script-console-successfully-reads-file/100107/1 "2024-12-20T16:41:29Z")

</div>

I'm attempting to upload a pdf using the Web Dev module but am running into an issue in which it says the file doesn't exist.

 ![Screenshot (317)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/6/460dcc1fd4c290755d0467cafe020d145eb24fd9.png)

The exact logger error states: "Error reading PDF: File 'C:\Program Files\Inductive Automation\Ignition\data\pdfs\AIUsePolicy.pdf' doesn't exist or isn't a file."

However testing in the script console proves the file reads sucessfully

 ![Screenshot (318)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/c/9c4e98c692b22f8314fd486e68c6b95e2d91cf05.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 20, 2024, 4:57pm UTC](https://forum.inductiveautomation.com/t/error-reading-pdf-file-in-web-dev-but-script-console-successfully-reads-file/100107/2 "2024-12-20T16:57:39Z")

</div>

Is the directory you created readable by the service user running the Ignition gateway process? Typically that's `LOCAL_SYSTEM` unless you've changed it.

The script console is running as _your local user_, whereas webdev is running as the gateway, which has different implications for Windows' permissions.

Also, why not just use a mounted folder resource?
