- PHP upload progress Bar
- Started
- Last post
- 9 Responses
- christoph
Anyone worked with PHP file upload progress bars (e.g., Computerlove's)? It'd be interesting to see others' approaches on this.
- enobrev0
where's CL's?
- lyrek0
LOL. Weren't you two drunkasses discussing this at karma this weekend, eno?
- enobrev0
who the hell is christof? who are you? i dont know!! i got home at like 730 that morning and remember very little.
- enobrev0
so.. back to the question.. where's CL's?
- lyrek0
man, i don't know, i hate CL.
- christoph0
If you have an account with Computerlove, click on 'Media Manager' (within the U-BOX). Insert new media (upload), and then watch the progress bar go ;)
- enobrev0
haven't been there much.. i like their vector map tho.
- enobrev0
the magic of their preloader is essentially showing something while uploading (since http unfortunately has no way of giving any actual upload progress data)
if you look at the code on their upload page, thir submit button has these steps:
hide('mm_upload');
show('mm_uploading');
document.forms[0].submit(); return falseWhich tells it to hide the form, show the spinning gif, subit the data, and dont redirect yet. Once the file is uploaded php generates the next page and serves it to the browser, which performs the 'refresh' and shows you the file uplaod info.
So, all you need is what they have in the code on the form page.
good luck.
- christoph0
I've created a PHP file upload progress bar before, but never as impressive as Computerlove's. I was just curious of the others' methods of such. Thanks for your tips and clarification, though.