Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

How to use the app.getPath() function?

Avatar

Level 2

How to use the app.getPath() function?

After reader enable also security error throwing.

Thanks

Vishnu

2 Replies

Avatar

Level 6

This is not an allowed function/method in forms designed in LC. Adobe did not included this functionality(File system Object) with the package as it can pose threat to personal information. If you have no alternatives search and learn about "Trusted Function" and the scope of this is limited and the config.js file needs to be updated on every machine that you intend to use your form other wise you will run in to similar issues.

Good Luck,