var path:com.ibm.xsp.http.UploadedFile = getComponent("fileUploadFinalStudyProtocol").value; var newPath:string = path.getClientFileName(); // do something with the original name return newPath;