public boolean upload() {
		/** ϴļĿ¼ */
		java.io.File dir = new java.io.File(filedir);
		if (!dir.exists())
			dir.mkdir();

		boolean mark = false;
		String contentType = request.getContentType(); // ȡļʽ
		System.out.println(contentType + "----ȡļʽcontentType");
		if (contentType.indexOf("multipart/form-data", 0) != -1) {
			int len = request.getContentLength(); // ļĴС
			if (len > maxlen)
				message = " ϴļܳΪ50!";
			else {
				/** ļݶֽfilecontent_b */
				try {
					DataInputStream in = new DataInputStream(request
							.getInputStream());
					filecontent_b = new byte[len];
					int readbyte = 0;
					int totalreadbyte = 0;
					while (totalreadbyte < len) {
						readbyte = in.read(filecontent_b, totalreadbyte, len);
						totalreadbyte += readbyte;
					}
					in.close();
					mark = true;
				} catch (IOException e) {
					e.printStackTrace();
				}

				/** ļдʱļtemp.txtСʵʿвҪɸļδΪ˷߲鿴ͨļύݵĸʽ */
				try {
					java.io.File tempfile = new java.io.File(filedir,
							"temp.txt");
					FileOutputStream tempfile_stream = new FileOutputStream(
							tempfile);
					tempfile_stream.write(filecontent_b);
					tempfile_stream.close();
				} catch (FileNotFoundException e) {
					e.printStackTrace();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		} else
			message = " ϴļͲ multipart/form-data ʽ<br>";
		return mark;
	}