Status Bar

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
abhai2k
Forum Newbie
Posts: 1
Joined: Sun Jan 01, 2006 1:23 pm

Status Bar

Post by abhai2k »

Is it possible to code in php a status bar which shows how much percentage of a file has been uploaded (graphically)???
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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....
Post Reply