# File system persimmon access with event.file.copyTo() on upload components

**URL:** <https://forum.inductiveautomation.com/t/file-system-persimmon-access-with-event-file-copyto-on-upload-components/68876>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 21, 2023, 4:26pm UTC](https://forum.inductiveautomation.com/t/file-system-persimmon-access-with-event-file-copyto-on-upload-components/68876 "2023-01-21T16:26:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 21, 2023, 5:14pm UTC](https://forum.inductiveautomation.com/t/file-system-persimmon-access-with-event-file-copyto-on-upload-components/68876/4 "2023-01-21T17:14:40Z")

</div>

Hmmm. Your `.copyTo()` as shown is just a folder name. You need to supply a complete file name. One of your own posts is an example:

> [@Disable perspective image component cache](https://forum.inductiveautomation.com/t/disable-perspective-image-component-cache/55987/3):
>
> Thanks, Paul, I just face another problem, when I upload a file in the gateway file system the next time I want to upload and overwrite the file I get this error which file is open and used by java.exe. \> java.io.FileNotFoundException: java.io.FileNotFoundException: webserver\webapps\main\User Image\nader.png (The requested operation cannot be performed on a file with a user-mapped section open) I simply want to save user profile pictures and user can change their user profile picture. base…

---

_[View the full topic](https://forum.inductiveautomation.com/t/file-system-persimmon-access-with-event-file-copyto-on-upload-components/68876)._
