Well, according to your script you are uploading to uploads/file-name. This means that apache is looking for a folder called ‘uploads’ in the same folder of your php script. So… you need to make sure that:
There is a folder called ‘uploads’ in the folder that this script is run from
That the uploads folder is writable by apache. If this is a local server then you can set the permissions to 777 but never use 777 on a live server.
As a side note, you should really change the uploads folder to a different location and use a path relative to where the script is stored e.g. …/uploads
So, just to get started, i created a folder called uploads in the folder that contains the php script, set its permissions to 777 and submitted the form again. No dice.
So I set permissions on the folder that contains the php script to 777 as well. No dice.
So I set the permissions of localhost directory to 777. Still no dice.