anchor.diff: -<%@ page language="java" contentType="text/html; charset=utf-8"
  -         pageEncoding="utf-8"%>
  -    <%@ page import="java.util.Properties" %>
  -    <%@ page import="java.util.List" %>
  -    <%@ page import="java.util.Iterator" %>
  -    <%@ page import="java.util.Arrays" %>
  -    <%@ page import="java.io.FileInputStream" %>
  -    <%@ page import="ueditor.Uploader" %>
  +    <%@ page language="java" contentType="text/html; charset=utf-8"
  +             pageEncoding="utf-8"%>
  +        <%@ page import="java.util.Properties" %>
  +        <%@ page import="java.util.List" %>
  +        <%@ page import="java.util.Iterator" %>
  +        <%@ page import="java.util.Arrays" %>
  +        <%@ page import="java.io.FileInputStream" %>
  +        <%@ page import="ueditor.Uploader" %>
   
  -        <%
  +            <%
   
   request.setCharacterEncoding("utf-8");
   response.setCharacterEncoding("utf-8");
  
positive.code: 
  }
  
  //获取前端提交的path路径
  String dir = request.getParameter( "dir" );
  
  if ( dir == null || "".equals( dir ) ) {
  
  
negative.code: 
  }
  
  up.setSavePath( dir );
  String[] fileType = {".gif" , ".png" , ".jpg" , ".jpeg" , ".bmp"};
  up.setAllowFiles(fileType);
  