Hi,
I am creating a temp file using following method in OSGI bundle.
Files.createTempFile("temp", ".json"); .
When I run the script in my local server it is getting created under C:/Users/vasim/AppData/Local/Temp/temp1233433455.txt. I am accessing that file in my javaScript and doing some operations on it. I have deployed the code in UAT server. In UAT it is creating files /opt/aem/. Now I am unable to access that file in my JavaScript. I tried by creating file under /content. Then also it is not working.
Regards,
Vasim