Re: [PHP] Problems getting error values in FILES superglobal.

2002-10-29 Thread Jorge . Manuel . Silva

I think I found a way of solving the problem.

When the transfer is interrupted $_FILES is filled and no error is
reported. However $_POST will be empty. So, if $_FILES['userfile']['error']
is set to 0 (meaning no error) but $_POST is empty, it means that the file
upload was interrupted.

Jorge.



   

Jorge.Manuel.Silva@bp  

ortugal.pt   To: [EMAIL PROTECTED] 

 cc:   

29-10-2002 13:28         Subject: [PHP] Problems getting 
error values in FILES superglobal.
   

   





I'm resending this because I don't see the message in the "archive". Sorry
if you're getting the message for the second time.

Jorge.

- Forwarded by Jorge Manuel Silva/doi/ep/bportugal on 29-10-2002 13:23
-

Jorge.Manuel.Silva@bp

ortugal.pt   To:
[EMAIL PROTECTED]
 cc:

28-10-2002 18:53 Subject: [PHP] $_FILES
['userfile']['error'] is always 0 ! Why ???






Hi,

I'm doing HTTP file upload but I'm having a problem where "$_FILES
['userfile']['error']" is always 0. Even if I press the stop button or
close the broser window where the upload is occuring it's always 0. This
results in truncated files.

Why ? What could be happening ?

Is there any other way I can use to identify truncated files in uploads ?
I'm so desperate that I've been looking at "content-length"...

I'm running RH 7.3 with PHP 4.2.2.

Thanks in advance,

Jorge.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Problems getting error values in FILES superglobal.

2002-10-29 Thread Jorge . Manuel . Silva
I'm resending this because I don't see the message in the "archive". Sorry
if you're getting the message for the second time.

Jorge.

- Forwarded by Jorge Manuel Silva/doi/ep/bportugal on 29-10-2002 13:23
-
   

Jorge.Manuel.Silva@bp  

ortugal.pt   To: [EMAIL PROTECTED] 

 cc:   

28-10-2002 18:53 Subject: [PHP] 
$_FILES['userfile']['error'] is always 0 ! Why ??? 
   

   





Hi,

I'm doing HTTP file upload but I'm having a problem where "$_FILES
['userfile']['error']" is always 0. Even if I press the stop button or
close the broser window where the upload is occuring it's always 0. This
results in truncated files.

Why ? What could be happening ?

Is there any other way I can use to identify truncated files in uploads ?
I'm so desperate that I've been looking at "content-length"...

I'm running RH 7.3 with PHP 4.2.2.

Thanks in advance,

Jorge.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php