The syntax should like
<input type="file"
maxsize="xxx"
progressInitColor="color1"
progressFilledColor="color2"
>
Also, file object should have "progress" properties, which show what is uploading percentage. So, javascript function can read that.
For the UI, once the file is starting to upload, INPUT file area show progressInitColor as background color and progressFilledColor flooding in base on uploading percentage. Also, the upload percentage number show next to file name.
This is what I think.
I saw some of ajax implementations show the file upload status bar. They are all by stage, not really progressive. As browser security, server don't know the file size until fully upload, so there is no way to use ajax to create real progress bar.
1 comment:
If Firefox have a solution of "Improved form upload manager/progress display", the will be nice, too.
Post a Comment