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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thu at nykredit dot dk
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 06:01:30 2024 UTC