Just a little confused by scripting. Within the Scripts Menu can we not simply refer to our custom Scripts within Files and include them by referring to the path to the files? GitHub and elsewhere say they must be SFTPed up to a directory like this
/opt/bitnami/apps/dreamfactory/htdocs/storage/scripting
To be clear https://github.com/dreamfactorysoftware/dsp-core/wiki/API-Access-via-Scripts states
try {
eval( include( 'test-include.js' ) );
print( 'Including "test-include" worked: ' + includeAvailable() );
} catch ( _ex ) {
print( 'Failed to include "test-include.js" file:' + _ex.message );
}
But why not
try {
eval( include( '/files/scripts/test-include.js' ) );
So I am just not sure why or if this was something that got deprecated in V2? Where should I put PHP scripts - same place I assume but where? Thanks in advance.
BTW (this is an edit to my earlier post) the scripting directory mentioned above is read only so when using an SFTP client to upload files, I do not have the permissions. Total Catch22 so far.