file upload ... status bar?
Moderator: General Moderators
-
sroberts209
- Forum Newbie
- Posts: 2
- Joined: Mon Aug 07, 2006 5:21 pm
file upload ... status bar?
Hi There,
We are designers working on a simple website for a local Print Shop. They want a way for clients to upload files to their FTP site, right from the website.
The PHP Programmer we have hired has got it working, but he says there's no way to display a "status bar" showing that the file is actually uploading.
Is this true?
Without a status bar, the user sees nothing, and doesn't know his file is uploading, so he thinks there is an error, and clicks away.
help?
We are designers working on a simple website for a local Print Shop. They want a way for clients to upload files to their FTP site, right from the website.
The PHP Programmer we have hired has got it working, but he says there's no way to display a "status bar" showing that the file is actually uploading.
Is this true?
Without a status bar, the user sees nothing, and doesn't know his file is uploading, so he thinks there is an error, and clicks away.
help?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
sroberts209
- Forum Newbie
- Posts: 2
- Joined: Mon Aug 07, 2006 5:21 pm
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
I can be done with Ajax or meta-refresh.hawleyjr wrote:I've seen this done using AJAX.
Can't be done in PHP without patching PHP (there is a project out there that does that). The problem is that your script is not run until the files are uploaded. Most systems use a Perl script to track the file size.hawleyjr wrote:Basically you check the size of the temp file while uploading.
(#10850)
I pretty busy now and don't have time to go through this blog but doesn't this work?arborint wrote:I can be done with Ajax or meta-refresh.hawleyjr wrote:I've seen this done using AJAX.
Can't be done in PHP without patching PHP (there is a project out there that does that). The problem is that your script is not run until the files are uploaded. Most systems use a Perl script to track the file size.hawleyjr wrote:Basically you check the size of the temp file while uploading.
http://blog.joshuaeichorn.com/archives/ ... -progress/
It says here that after PHP 4.3.7 the patch is no longer needed. Although, like I said. I didn't read the whole thing
Demo:
http://php5.bluga.net/progressDemo/demo.php
php 5.2 supports upload hooks.
Until then you might try http://www.raditha.com/megaupload/
Until then you might try http://www.raditha.com/megaupload/