File Upload

File Upload

am 30.01.2010 12:27:03 von Ali Reza Sajedi

Hello,

When uploading a file the variable $_FILES['userfile']['tmp_name'] is not
set and when debugging I get the following error although /tmp folder exists
and the permissions are set to 777:

$_FILES['userfile']['error'] = 6

which says

UPLOAD_ERR_NO_TMP_DIR
Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
5.0.3.

Has anyone encountered such a problem or has a clue as to what the cause
could be?

Thank you.

Kind regards

Ali


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

Re: File Upload

am 30.01.2010 13:20:35 von Kim Madsen

Ali Reza Sajedi wrote on 30/01/2010 12:27:

> UPLOAD_ERR_NO_TMP_DIR
> Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
> 5.0.3.
>
> Has anyone encountered such a problem or has a clue as to what the cause
> could be?

What does "print phpinfo()"; tell you about the upload_tmp_dir?

--
Kind regards
Kim Emax - masterminds.dk

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

Re: File Upload

am 30.01.2010 13:21:46 von Eric Lee

--001636c5961db3c770047e60cb98
Content-Type: text/plain; charset=UTF-8

On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi wrote:

> Hello,
>
> When uploading a file the variable $_FILES['userfile']['tmp_name'] is not
> set and when debugging I get the following error although /tmp folder exists
> and the permissions are set to 777:
>
> $_FILES['userfile']['error'] = 6
>
> which says
>
> UPLOAD_ERR_NO_TMP_DIR
> Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
> 5.0.3.
>
> Has anyone encountered such a problem or has a clue as to what the cause
> could be?
>
>
It might be the upload_tmp_dir no pointing to the right dir !
What is the current of it ?



Regards,
Eric,



Thank you.
>
> Kind regards
>
> Ali
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--001636c5961db3c770047e60cb98--

Re: File Upload

am 30.01.2010 14:40:35 von Ali Reza Sajedi

------=_NextPart_000_0020_01CAA1BA.2EA33F80
Content-Type: text/plain;
charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank you for your replys.

In php.ini upload_tmp_dir is not set, so that the system should use its =
default tmp folder.

It used to work properly. But, after a system update from centos5.3 to =
centos5.4 this malfunction is now observed.

Any idea?

Kind regards

Ali

=20
----- Original Message -----=20
From: Eric Lee=20
To: Ali Reza Sajedi=20
Cc: phpList list=20
Sent: Saturday, January 30, 2010 1:21 PM
Subject: Re: [PHP] File Upload





On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi =
wrote:

Hello,

When uploading a file the variable $_FILES['userfile']['tmp_name'] =
is not set and when debugging I get the following error although /tmp =
folder exists and the permissions are set to 777:

$_FILES['userfile']['error'] =3D 6

which says

UPLOAD_ERR_NO_TMP_DIR
Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and =
PHP 5.0.3.

Has anyone encountered such a problem or has a clue as to what the =
cause could be?



It might be the upload_tmp_dir no pointing to the right dir !
What is the current of it ?



Regards,
Eric,




Thank you.

Kind regards

Ali=20

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




------=_NextPart_000_0020_01CAA1BA.2EA33F80--

Re: File Upload

am 30.01.2010 14:51:30 von Ashley Sheridan

--=-24jfHGid32wF5wjAUcK5
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Sat, 2010-01-30 at 14:40 +0100, Ali Reza Sajedi wrote:

> Thank you for your replys.
>
> In php.ini upload_tmp_dir is not set, so that the system should use its default tmp folder.
>
> It used to work properly. But, after a system update from centos5.3 to centos5.4 this malfunction is now observed.
>
> Any idea?
>
> Kind regards
>
> Ali
>
>
> ----- Original Message -----
> From: Eric Lee
> To: Ali Reza Sajedi
> Cc: phpList list
> Sent: Saturday, January 30, 2010 1:21 PM
> Subject: Re: [PHP] File Upload
>
>
>
>
>
> On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi wrote:
>
> Hello,
>
> When uploading a file the variable $_FILES['userfile']['tmp_name'] is not set and when debugging I get the following error although /tmp folder exists and the permissions are set to 777:
>
> $_FILES['userfile']['error'] = 6
>
> which says
>
> UPLOAD_ERR_NO_TMP_DIR
> Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3.
>
> Has anyone encountered such a problem or has a clue as to what the cause could be?
>
>
>
> It might be the upload_tmp_dir no pointing to the right dir !
> What is the current of it ?
>
>
>
> Regards,
> Eric,
>
>
>
>
> Thank you.
>
> Kind regards
>
> Ali
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


The upgrade just changed the setting. If you set this in your php.ini,
it should work again.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-24jfHGid32wF5wjAUcK5--