Post Action Saves some text as an attachment

Post Parameters


Server Side Javascript for POST method

transaction.getPostData(); pageName = transaction.getPostParameter("pageName"); transaction.userCanPerformAction(pageName,"update",true); fileName = transaction.getPostParameter("fileName"); data = transaction.getPostParameter("data"); user = transaction.getUser(); wiki.saveAsAttachment(pageName,fileName,data,user); wiki.buildPage(pageName); transaction.goToPage(pageName);