* browser to update the progress bar
*/
private String getStatus(final Attributes attributes)
{
HttpServletRequest req = (HttpServletRequest)attributes.getRequest().getContainerRequest();
UploadInfo info = MultipartServletWebRequestImpl.getUploadInfo(req);
String status = null;
if ((info == null) || (info.getTotalBytes() < 1))
{
status = "0|0|0|0|0";
}
else
{
status = "" + info.getPercentageComplete() + "|" + info.getBytesUploadedString() + "|" +
info.getTotalBytesString() + "|" + info.getTransferRateString() + "|" +
info.getRemainingTimeString();
}
status = "<html><body>|" + status + "|</body></html>";
return status;
}