Page 1 of 1
Status Bar
Posted: Sun Jan 01, 2006 1:25 pm
by abhai2k
Is it possible to code in php a status bar which shows how much percentage of a file has been uploaded (graphically)???
Posted: Sun Jan 01, 2006 1:29 pm
by John Cartwright
Posted: Sun Jan 01, 2006 1:32 pm
by Burrito
I assume you mean uploading from a client to the server using multipart form data. If so, there is no way. In order to do that, you'd have to know the size of the file to accurately display a 'status bar'. There is a way to snatch the size of the file in IE but it presents a security risk and would prompt the user to 'allow' the browser to check (not something you want).
If you're talking about uploading a file from the server to another server (via ftp or the like), then yes it can be done and I've done just that and could help you with it if need be.
Posted: Sun Jan 01, 2006 7:29 pm
by Chris Corbyn
We had this discussion a while back... interesting:
viewtopic.php?t=40180&highlight=upload+progress
But ou'll need to be able to install an extension to PHP to use any of it....