AnsweredAssumed Answered

How to redirec to a specific folder from within a webscript

Question asked by gtj on Jul 21, 2009
Latest reply on Jul 23, 2009 by gtj
I am modifying the simple 'upload" webscript example so that it takes args which specify the place to put the file (path) and the filename itself. Users must authenticate themselves to use the script.  All are working fine. What I would like to do next is, upon successful; redirect to the screen Alfresco webclient screen and straight to the directory where the file is persisted.

Using the status code 303 such as below:
status.code = 303;
status.redirect = true;
status.location = "http://localhost:8080/alfresco/faces/jsp/browse/browse.jsp";

will only direct me to the top level of my home directory, not to the location where the file is saved. But then again how do I pass the file location into the URL? Or is there any other better way?