Hi Kasun, It is not possible to do changes to file system through tenant code. So the only way to get rid of this is to, find a work around for temp file writing. One possibility is to write temp file data to a database through "Data Services" and later retrieve them. But as per now, tenant code is not allowed to do any file operations.
Thanks AmilaJ On Sat, Apr 7, 2012 at 1:21 PM, Kasun Perera <[email protected]> wrote: > > Hi Supun > > I am trying to upload a file to the database in the form of a blob during > which the file upload program writes a temporary file to the disk. > > It seems though the Stratos app server is preventing such temp file to be > written to the disk due to security reasons. I have attached the stack trace > of the error. Would you be able to help us in solving this problem? > > We however cannot avoid writing temp files, so that’s something we have to > live with. There are other places in the our application where we require > writing temporarily to disk. > > So the only way this could be solved is by adjusting i.e. modifying the > security manager setting in Stratos ?. > Is this possible (I guess this should be), if YES how? It would nice if you > could send us some links on how this problem could be circumvented as there > aren’t that many posts on this particular problem. > > this is the file-upload class http://paste.org/47685 > -- > Regards > > Kasun Perera > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > -- Mobile : +94773330538 _______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
