Accessing App Name or URL from Server Side Action

Hi There,

I am in the process of developing a plugin which includes a server side action which needs to upload a file.

I’ve managed to get things to work by passing in the “this url” variable to the action:

I can then use this to determine the application name so that I can then upload the file via

The downside of this approach, of course, is that I need to instruct my plugin users to pass in this variable every time the action is called.

So I’m wondering, is there anyway to access the application name / url from a server side action? Or even pass in the current url transparently to the user?

Have you found a way to access the app name or URL from SSA?