# How do you place an image from the local file system using BatchPlay?

**URL:** <https://forums.creativeclouddeveloper.com/t/how-do-you-place-an-image-from-the-local-file-system-using-batchplay/2407>\
**Category:** UXP Plugin API\
**Tags:** javascript\
**Created:** [January 5, 2021, 6:27pm UTC](https://forums.creativeclouddeveloper.com/t/how-do-you-place-an-image-from-the-local-file-system-using-batchplay/2407 "2021-01-05T18:27:25Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![tomzag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/tomzag/32/2464_2.png) [@tomzag](https://forums.creativeclouddeveloper.com/u/tomzag)\
**Post date:** [June 7, 2021, 1:07pm UTC](https://forums.creativeclouddeveloper.com/t/how-do-you-place-an-image-from-the-local-file-system-using-batchplay/2407/16 "2021-06-07T13:07:38Z")

</div>

How are you calling `placeEmbedded()`?  
Are you getting the `tokenstring` with `localStorage.getItem("persistent-file")`?

Often a `try/catch` around the code helps to track down the issue.

BTW please format the code in the posts for better readabelity (it’s the \</\> icon).

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/how-do-you-place-an-image-from-the-local-file-system-using-batchplay/2407)._
