# Disable perspective image component cache

**URL:** <https://forum.inductiveautomation.com/t/disable-perspective-image-component-cache/55987>\
**Category:** Ignition Early Access\
**Created:** [February 10, 2022, 3:43pm UTC](https://forum.inductiveautomation.com/t/disable-perspective-image-component-cache/55987 "2022-02-10T15:43:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [February 10, 2022, 7:36pm UTC](https://forum.inductiveautomation.com/t/disable-perspective-image-component-cache/55987/3 "2022-02-10T19:36:28Z")

</div>

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.

```auto
	basePath = 'webserver/webapps/main/User Image/'
	extension = event.file.name.split(".")[-1]
	username = self.session.props.auth.user.userName
	event.file.copyTo(basePath + username + "." + extension)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/disable-perspective-image-component-cache/55987)._
