throws IOException, ServletException
{
String errorPage = m_engine.getURL( WikiContext.ERROR, "", null, false ); // If something bad happened, Upload should be able to take care of most stuff
String p = new String(req.getPathInfo().getBytes("ISO-8859-1"), "UTF-8");
DavPath path = new DavPath( p );
try
{
InputStream data = req.getInputStream();
WikiContext context = m_engine.createContext( req, WikiContext.UPLOAD );
String wikipage = path.get( 0 );
errorPage = context.getURL( WikiContext.UPLOAD,
wikipage );
String changeNote = null; // FIXME: Does not quite work
boolean created = executeUpload( context, data,
path.getName(),
errorPage, wikipage,
changeNote,
req.getContentLength() );
if( created )