File Upload Security

I’ve a database that allows users to upload pictures. In order to do this, the agent signer that does the job has to be added to the “Run unrestricted methods and operations:” section of the server document because (irritatingly) even though there is no permanent access to the file system, the getInputStream() method creates a temporary file on the server so it needs the file i/o access level.

So, in order to do the job, I’ve created an id and use that one to sign this one agent that needs this access and it all works fine and added that one id to the server doc.

What I’m wondering is whether the consensus is that this is the best practice way to do it and if not, what other way would be better.

What would be ideal would be if as in the AS/400 world you can create a method and ascribe higher rights at and only at execution time but I don’t think that’s possible. I’ve tried experimenting with ‘On behalf of’ but as I understand it it’s only for scheduled agents and this is not.

Please let me know your thought, and thanks in advance.

George :slight_smile: