[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1285
  • Last Modified:

show progress bar for file upload

Hi,

I have to show progress bar while the file is uploading? the progress bar should show the information 1%,2%.8%.87%.100%

we can call a ajax method which will upload the file in the database? but how to identify the progress %
0
Rocking
Asked:
Rocking
  • 2
1 Solution
 
krakatoaCommented:
For Java swing : JProgressBar.getPercentComplete()
0
 
rrzCommented:
What are  you using to parse the request?
0
 
RockingAuthor Commented:
simple servlet which will insert the file in database through ajax
0
 
rrzCommented:
You could do something similar to what is done at
http://www.avajava.com/tutorials/lessons/how-do-i-monitor-the-progress-of-a-file-upload-to-a-servlet.html?page=1   
It would be easier to use what they used  to parse:  
http://commons.apache.org/proper/commons-fileupload/   
Anyway, you could call the progress listener through AJAX. You wouldn't have to have separate page like they did there.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now