|
| |
1. don't show upload prosess |
|
Reply |
|
|
 Nabi KaramAliZadeh | 2008-03-18 20:10:46 |
hi,
i use PHP Version 5.2.5
uploadprogress 0.3.0-beta enabled
i try "test_upload_progress.php" file.
but don't show upload prosess
thanks
nabi
|
| |
2. Re: don't show upload prosess |
|
Reply |
|
|
 Manuel Lemos | 2008-03-18 20:54:29 |
| The upload progress bar only appears after 1 second. If your upload takes less than that, it may not have time to appear. |
| |
3. Re: don't show upload prosess |
|
Reply |
|
|
 Nabi KaramAliZadeh | 2008-03-18 22:31:24 |
this is sample:
http://ahwazserver.net/temp/creation_form/formsgeneration-2008-02-04/test_upload_progress.php
see it.
|
| |
4. Re: don't show upload prosess |
|
Reply |
|
|
 Manuel Lemos | 2008-03-18 23:10:23 |
The problem seems to be caused by mod_gzip. It dechunks PHP responses, which means that it is storing in a buffer the AJAX responses that show upload progress, instead of sending the responses right away to the browser.
The solution is to tell mod_gzip to not compress that page and so not dechunk responses.
Alternatively, if you use Apache 2.x with mod_deflate you will not have that problem.
This article explains these problems:
http://www.phpclasses.org/blog/post/58-Responsive-AJAX-applications-with-COMET.html |
| |
5. Re: don't show upload prosess |
|
Reply |
|
|
 Nabi KaramAliZadeh | 2008-03-19 00:33:07 |
Hi Manuel,
thanks for helping...
please let me know, what's config for solve this problem,
for this server:
Apache/1.3.41 (Unix) PHP/5.2.5 mod_gzip/1.3.26.1a
and this server:
Apache/2.2.3 (Win32) PHP/5.2.0
thanks a lot.
Nabi |
| |
6. Re: don't show upload prosess |
|
Reply |
|
|
 Manuel Lemos | 2008-03-19 00:40:28 |
| It is explained in the article under "Avoiding mod_gzip dechunking". For Apache 2.x, it is not necessary to do anything. |
| |
7. Re: don't show upload prosess |
|
Reply |
|
|
 Nabi KaramAliZadeh | 2008-03-19 01:12:04 |
i add this line the first php page:
Header('X-do-not-compress-this: yes');
but about this:
mod_gzip_item_exclude rspheader "X-do-not-compress-this: yes"
where is mod_gzip configuration ?!!
|
| |
8. Re: don't show upload prosess |
|
Reply |
|
|
 Manuel Lemos | 2008-03-19 01:29:36 |
| mod_gzip is an Apache module. You should add that line in the Apache configuration where you that module is loaded. |
| |
9. Re: don't show upload prosess |
|
Reply |
|
|
 bharanikumar | 2008-03-20 05:20:20 |
i dear
am new bee to phpclass and even php development.
i want to upload upto 10 mb with upload progress bar..
so plz if you have code..
snd it..
its veru urgent..
thanks in advance.. |
| |
10. Re: don't show upload prosess |
|
Reply |
|
|
 Manuel Lemos | 2008-03-20 05:35:23 |
Just download this forms generation and validation class, install the PHP uploadprogress extension and use the forms class upload progress plug-in.
If you do not feel capable, just let me know and I will find somebody that can help you providing that you pay consulting fees. |
|