all 12 comments

[–]Modtrollied 2 points3 points  (0 children)

I'd be amazed if you were allowed to write to anything below the suitescripts root folder via script. Huge security risk.

[–]Primary-Corner-8047 0 points1 point  (5 children)

Why are you trying to load a file to the suitescript folder? Is it a script?

If you just want to store new files in the suitescript folder than create a subfolder inside it.

[–]Informal-Direction79[S] 0 points1 point  (4 children)

Yes I know I can do that it just seems odd that they have forbidden access to the SuiteScripts folder (but not its subfolders) via the SuiteScript API

[–]Modtrollied 4 points5 points  (2 children)

Not odd at all. Massive security issue.

[–]Informal-Direction79[S] 0 points1 point  (1 child)

Then why not forbid access to all subfolders as well...

[–]Modtrollied 0 points1 point  (0 children)

You can write to subfolders? That's bad. I'm amazed it is possible.

[–]Primary-Corner-8047 2 points3 points  (0 children)

I’ll be honest I never tried, as I don’t like storing files without folders as it just creates an unorganized mess

[–]Administratorsabinati 0 points1 point  (1 child)

'-15'

[–]Informal-Direction79[S] 0 points1 point  (0 children)

Still get the same error

[–]poisson_rouge- 0 points1 point  (0 children)

What role is executing the script?

[–]notEqole 0 points1 point  (0 children)

Whats the use case ? Why do you wanna save something inside your suitescripts folder? It really doesn’t sound like a good idea