PHP Classes

don't show upload prosess

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  don't show upload prosess  >  (Un) Subscribe thread alerts  
Subject:don't show upload prosess
Summary:don't show upload prosess
Messages:19
Author:Nabi KaramAliZadeh
Date:2008-03-18 20:10:46
Update:2008-08-17 14:35:39
 
  1 - 10   11 - 19  

  1. don't show upload prosess   Reply   Report abuse  
Picture of Nabi KaramAliZadeh 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   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-18 20:54:29 - In reply to message 1 from Nabi KaramAliZadeh
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   Report abuse  
Picture of Nabi KaramAliZadeh Nabi KaramAliZadeh - 2008-03-18 22:31:24 - In reply to message 2 from Manuel Lemos
this is sample:
ahwazserver.net/temp/creation_form/ ...

see it.

  4. Re: don't show upload prosess   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-18 23:10:23 - In reply to message 3 from Nabi KaramAliZadeh
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:

phpclasses.org/blog/post/58-Respons ...

  5. Re: don't show upload prosess   Reply   Report abuse  
Picture of Nabi KaramAliZadeh Nabi KaramAliZadeh - 2008-03-19 00:33:07 - In reply to message 4 from Manuel Lemos
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   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-19 00:40:28 - In reply to message 5 from Nabi KaramAliZadeh
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   Report abuse  
Picture of Nabi KaramAliZadeh Nabi KaramAliZadeh - 2008-03-19 01:12:04 - In reply to message 6 from Manuel Lemos
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   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-19 01:29:36 - In reply to message 7 from Nabi KaramAliZadeh
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   Report abuse  
Picture of bharanikumar bharanikumar - 2008-03-20 05:20:20 - In reply to message 7 from Nabi KaramAliZadeh
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   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-20 05:35:23 - In reply to message 9 from bharanikumar
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.

 
  1 - 10   11 - 19