Click to See Complete Forum and Search --> : [Resolved] File uploads not uploading


yelvington
08-02-2004, 09:21 PM
I first noticed this problem with Gallery and confirmed it with test code. My recent PHP5 upgrade isn't handling file uploads. With a standard HTML file upload widget, nothing shows up in /tmp, and the $_FILES[] array is not populated.

According to php.ini and phpinfo(), file uploads are enabled.

Anybody seen this happen?

When I use Gallery Remote, the /tmp directory gets the file, but Gallery reports no filename.

System is Apache 2.0.50, PHP5, Linux.

yelvington
08-02-2004, 09:52 PM
Fix: PHP5 is not defaulting to the system temporary directory, as did previous versions of PHP. Forcing the setting in php.ini fixed the problem.


upload_tmp_dir = /tmp