show progress bar for file upload

Posted on 2014-08-14
Last Modified: 2014-08-17

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 %
Question by:Rocking
    LVL 16

    Expert Comment

    For Java swing : JProgressBar.getPercentComplete()
    LVL 27

    Expert Comment

    What are  you using to parse the request?

    Author Comment

    simple servlet which will insert the file in database through ajax
    LVL 27

    Accepted Solution

    You could do something similar to what is done at    
    It would be easier to use what they used  to parse:    
    Anyway, you could call the progress listener through AJAX. You wouldn't have to have separate page like they did there.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    The viewer will learn how to implement Singleton Design Pattern in Java.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now