/UploadFileWithProgressBar

上传文件并显示进度条

Primary LanguageJava

About this Project:

this project show the progress when upload a file and see the percentage real-time.

How to run it:

  1. download this project to you local computer.
  2. open it with your JavaEE IDE(like Eclipse).
  3. find the class : UploadServlet.java modify the code(line 49): File temp = new File("/home/wp/tmp/uploadfile"); change the path "/home/wp/tmp/uploadfile" to you local file path.
  4. deploy it to the web container(like Tomcat).
  5. open you browser and type: http://localhost:8080/UploadFileWithProgressBar

Demo page:

see the picture demo.jgp in the project.

Enjoy it.