This is driving me crazy. I\'m trying to figure out how to upload a file. I\'ve got two very simple files, yet it doesn\'t seem to work. This first is the file that allow
Add that in Form tag
enctype="multipart/form-data"
You shuold use attribute enctype="multipart/form-data"
in form tag.
Add the proper enctype attribute to your form
tag:
<form action="getfile.php" method="post" enctype="multipart/form-data">
It's documented here: http://www.php.net/manual/en/features.file-upload.post-method.php
Also, make sure there's no space between your brackets when you access multi-dimensional arrays:
$_FILES['uploadFile']['tmp_name']