Hi,
I need to show the status of file upload to servlet in the browser, how can this be acheived without using any libraries like jquery, what are the various options for doing this and which one is the best?
Best Regards,
Keshav
Hi,
I need to show the status of file upload to servlet in the browser, how can this be acheived without using any libraries like jquery, what are the various options for doing this and which one is the best?
Best Regards,
Keshav
Without using any add-ons at all, you can't, at least not in all currently-popular browsers. There are some Flash-based uploaders that can do it, and in some newer browsers there's an HTML5-related file API that could be used. In older browsers (IE), you have no access at all to the client-side filesystem, so your Javascript code won't have any idea of the file size.