Skip to main content
Participant
September 3, 2025
Answered

How to access files located on a local server? CEP to UXP conversion

  • September 3, 2025
  • 1 reply
  • 130 views

Dear all, 

I am trying to convert my CEP extension to plugin, and i have needs to access to an xml file located on a local server. 

In CEP extension it was

var XML file = new FIle("/Volumes/Jobs/Some_folder/Test.jdf")

XMLfile.open('r');

and so on...

Is it possible and how to access files from a local server using UXP?

 

Correct answer creative explorer

@milevicm In UXP, you can't use the File object or direct file paths like you did in CEP. Due to security and sandboxing requirements, UXP plugins are restricted from arbitrary access to the local file system. This is a core difference from CEP and is a significant change for plugin developers. This video provides a general overview of creating plugins in Photoshop with UXP, which covers the new approach to file access. https://youtu.be/6iFVozCJ1aw?si=im4Ky55ZNX_wID8x 

1 reply

creative explorer
Community Expert
creative explorerCommunity ExpertCorrect answer
Community Expert
September 5, 2025

@milevicm In UXP, you can't use the File object or direct file paths like you did in CEP. Due to security and sandboxing requirements, UXP plugins are restricted from arbitrary access to the local file system. This is a core difference from CEP and is a significant change for plugin developers. This video provides a general overview of creating plugins in Photoshop with UXP, which covers the new approach to file access. https://youtu.be/6iFVozCJ1aw?si=im4Ky55ZNX_wID8x 

m
milevicmAuthor
Participant
September 11, 2025

Sure, thank tou for this, but is there any kind of workaround for this kind of issues. 😬