# Import a file from the plugin folder to photoshop

**URL:** <https://forums.creativeclouddeveloper.com/t/import-a-file-from-the-plugin-folder-to-photoshop/6861>\
**Category:** UXP Plugin API\
**Tags:** uxp\
**Created:** [September 24, 2023, 3:05pm UTC](https://forums.creativeclouddeveloper.com/t/import-a-file-from-the-plugin-folder-to-photoshop/6861 "2023-09-24T15:05:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![morph3us](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/morph3us/32/3099_2.png) [@morph3us](https://forums.creativeclouddeveloper.com/u/morph3us)\
**Post date:** [September 25, 2023, 1:35pm UTC](https://forums.creativeclouddeveloper.com/t/import-a-file-from-the-plugin-folder-to-photoshop/6861/2 "2023-09-25T13:35:43Z")

</div>

I can not help you fix your specific problem, as I do not know enough.  
I have just solved the same problem in a different way. If you do not explicitly need to import the image as binary, maybe this could help?

> [@Import Image as Layer](http://forums.creativeclouddeveloper.com/t/import-image-as-layer/6563/17):
>
> Thanks tomzag, after Aurore had no issue with the extra await, I thought I made a mistake. Your suggestion was correct, logical, and made it work! I now have a working script that imports a layer and then resizes it to the canvas size: const {executeAsModal} = require("photoshop").core; const {batchPlay} = require("photoshop").action; const {localFileSystem: fs} = require("uxp").storage; const app = require('photoshop').app; const currentDocument = app.activeDocument; let docWidth = currentD…

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/import-a-file-from-the-plugin-folder-to-photoshop/6861)._
