php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29634 $_FILES is empty!
Submitted: 2004-08-12 16:21 UTC Modified: 2004-08-12 16:40 UTC
From: thu at nykredit dot dk Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.0.0 OS: Fedora 2
Private report: No CVE-ID: None
 [2004-08-12 16:21 UTC] thu at nykredit dot dk
Description:
------------
I cannot get any content into $_FILES it is recognized as an array -  but an empty array.
I have set (after having tried default settings):
 upload_tmp_dir=/var/www/uploads
 open_basedir=/var/www
 file_uploads=on
 register_globals=on

I have also tried to chmod 777 on the upload dir!.

Reproduce code:
---------------
FILE1: upload.php
<form enctype="multipart/form-data" action="upload_submit.php" method="POST">
<input type=file name=thufile>
<input type=submit>
</form>

FILE2: upload_submit.php
<?php
print_r($_FILES)
?>

Expected result:
----------------
SOMETHING LIKE THIS...

Array ( [thufile] => Array ( [name] => mirror.html [type] => text/html [tmp_name] => /tmp/phpAAFggh [size] => 38391 ) )

Actual result:
--------------
Array()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-12 16:40 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 03:01:30 2024 UTC