Upload progress bar?
Moderator: General Moderators
-
mikegotnaild
- Forum Contributor
- Posts: 173
- Joined: Sat Feb 14, 2004 5:59 pm
Upload progress bar?
Does anyone know where i could get a free one thats easy to plug into my uploads? Hopefully this isnt considered off-topic.
http://www.hotscripts.com did you try that ?
Google:Upload progress bar script java / perl ..............
Google:Upload progress bar script java / perl ..............
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
googled for php upload progress bar, first result
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
Ya, I don't know if you can make a progress bar that shows percentage uploaded, but you can certainly make a progress bar that just keeps moving as long as the upload is going.
While I've never done this per se, I know you can turn off buffered output - so you can keep output coming in real time. That's the first step. I'm also pretty sure you can check file size (I can't imagine why not). So, you could check the file size, and if it's changed from the last time, grow the bar.
What I'm thinking will probably require another window to show the status, as well as some javascript to reload said window.
I'm making this up as I go so if it doesn't make sense, just let me know.
While I've never done this per se, I know you can turn off buffered output - so you can keep output coming in real time. That's the first step. I'm also pretty sure you can check file size (I can't imagine why not). So, you could check the file size, and if it's changed from the last time, grow the bar.
What I'm thinking will probably require another window to show the status, as well as some javascript to reload said window.
I'm making this up as I go so if it doesn't make sense, just let me know.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
mikegotnaild
- Forum Contributor
- Posts: 173
- Joined: Sat Feb 14, 2004 5:59 pm
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm