anchor.diff:  <%
     int MAXATTACHNAMELENGTH = 30;
     WikiContext wikiContext = WikiContext.findContext(pageContext);
  +  String progressId = wikiContext.getEngine().getProgressManager().getNewProgressIdentifier();
   %>
   
  +<script language="JavaScript">
  +function popUp(URL) {
  +day = new Date();
  +id = day.getTime();
  +eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=20,left = 240,top = 502');");
  +}
  +</script>
   <h3><fmt:message key="attach.add"/></h3>
   <wiki:Permission permission="upload">
     <wiki:Permission permission="upload">
  -  <form action="<wiki:Link jsp='attach' format='url' absolute='true'/>" 
  +  <form action="<wiki:Link jsp='attach' format='url' absolute='true'><wiki:Param name='progressid' value='<%=progressId%>'/></wiki:Link>"
            class="wikiform"
  -        method="post" 
  +        method="post"
          enctype="multipart/form-data" accept-charset="<wiki:ContentEncoding/>"
         onsubmit="return Wiki.submitOnce( this );" >
       <input type="hidden" name="page" value="<wiki:Variable var="pagename"/>" />
  
positive.code:       <td colspan="2"><div class="formhelp"><fmt:message key="attach.add.info" /></div></td>
      </tr>
      <tr>
        <td><label for="content"><fmt:message key="attach.add.selectfile"/></label></td> 
        <td><input type="file" name="content" id="content" size="32"/></td>
      </tr>
      <tr>
        <td><label for="changenote"><fmt:message key="attach.add.changenote"/></label></td> 
        <td><input type="text" name="changenote" id="changenote" maxlength="80" size="60" />
      <input type="hidden" name="nextpage" value="<wiki:UploadLink format="url"/>" /></td>
      </tr>
  
negative.code: <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
  <%@ page import="com.ecyrd.jspwiki.*" %>
  <%@ page import="com.ecyrd.jspwiki.auth.*" %>
  <%@ page import="com.ecyrd.jspwiki.ui.progress.*" %>
  <%@ page import="com.ecyrd.jspwiki.auth.permissions.*" %>
  <%@ page import="java.security.Permission" %>
  <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  