I am uploading 6 files from a form to a data php script.
My form looks like this:
<form enctype=multipart/form-data action=insertdata.php method=post>
<input name=file1 type=file><br>
<input name=file2 type=file><br>
...
<input type=submit>
and in insertdata.php I use:
echo "File pointer is: $file1";
This returns a file pointer when I upload normal files like picture.jpg and such
But when I upload a file with a space in it, like
New Text Document.txt
the file pointer ($file1) is "none" and thus the script fails.
How to correct this?