# UXP documentation issue

**URL:** <https://forums.creativeclouddeveloper.com/t/uxp-documentation-issue/4815>\
**Category:** UXP Plugin API\
**Created:** [June 17, 2022, 9:03pm UTC](https://forums.creativeclouddeveloper.com/t/uxp-documentation-issue/4815 "2022-06-17T21:03:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adobe256](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@Adobe256](https://forums.creativeclouddeveloper.com/u/Adobe256)\
**Post date:** [June 17, 2022, 9:03pm UTC](https://forums.creativeclouddeveloper.com/t/uxp-documentation-issue/4815/1 "2022-06-17T21:03:01Z")

</div>

someone help shine some light here. it’s my first time going through uxp and am on the documentation. so am looking at the file system and this page to be specific “[https://developer.adobe.com/photoshop/uxp/2022/uxp/reference-js/Modules/uxp/Persistent%20File%20Storage/File/](https://developer.adobe.com/photoshop/uxp/2022/uxp/reference-js/Modules/uxp/Persistent%20File%20Storage/File/)” and am realizing that the "

> require(‘uxp’).storage.File

returns undefined on the console. could I be missing something ?

 ![returningundefined](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/e/edffaa36f0ed7c49ad9f72d61148e1add76caadd.png)

**B**  
Also on the following, file system provider is also undefined . “[https://developer.adobe.com/photoshop/uxp/2022/uxp/reference-js/Modules/uxp/Persistent%20File%20Storage/FileSystemProvider/](https://developer.adobe.com/photoshop/uxp/2022/uxp/reference-js/Modules/uxp/Persistent%20File%20Storage/FileSystemProvider/)”  
Example simmilar to the above screenshot when fs is replaced with " **require(‘uxp’).storage.FileSystemProvider**"

**C**  
when I check properties of

> require(‘uxp’).storage

I realize none of the above is in the property tree. could I be misunderstanding something or it’s an issue

 ![fsprops](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/9/9fa066e393d342049060947282362ca170c4ab66.png)

---

<div class="post-metadata">

**Author:** ![sttk3](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sttk3](https://forums.creativeclouddeveloper.com/u/sttk3)\
**Post date:** [June 21, 2022, 10:22am UTC](https://forums.creativeclouddeveloper.com/t/uxp-documentation-issue/4815/2 "2022-06-21T10:22:51Z")

</div>

File and FileSystemProvider are not directly accessed by you; they use instances already prepared by UXP.

Currently, localFileSystem is defined as the FileSystemProvider. Use it as follows.

```auto
const fs = require('uxp').storage.localFileSystem ;
const chosenFile = await fs.getFileForOpening() ;
console.log(chosenFile.isFile) ;

```

I agree that the documentation is confusing. If the localFileSystem page had such an example, it would be much easier to understand.
