Jump to content

$_FILES array empty


Recommended Posts

The further I go into web development, the stranger the problems I encounter get. My latest brain twister involves an empty $_FILES array. I have never encountered this problem before. When I submit the form, no matter how I do it, the $_FILES array returns empty. Here's my form:

<form action="" enctype="multipart/fom-data" method="post">    <input type="hidden" name="MAX_FILE_SIZE" value="700000" />    <input type="file" name="avatar_file" required="required" />    <input type="submit" value="Upload & Stamp!" /></form>

I've done a clean install of PHP and Apache, yet the problem persists. My $_POST array looks like this: Array ( [MAX_FILE_SIZE] => 700000 [avatar_file] => cyberstream-avatar.png ) I'm confused because most problems with an empty $_FILES array are because the form enctype is incorrectly set (or not set at all). This problem just started randomly (It could have been when I was modifying an httpd.conf or php.ini file, but then the clean installation should have fixed it). It hasn't stopped since.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...