Hi,
I had similar problems when I tested the code you sent in the zip file. Here is how I solved it. First of all there is an error:
if (move_uploaded_file($_FILES['pictureupload']['tmp_
name'], $uploaddir . $_FILES['pictureupload']['name'])) {
It's on two lines. Change it to:
if (move_uploaded_file($_FILES['pictureupload']['tmp_name'],$uploaddir.$_FILES['pictureupload']['name'])) {
Sorry, for some reason phpbuilder splits it up to two lines (whioch might be the problem you had), it should be on one line 🙁
Then use an absolute path, not ./ but e.g. /path/to/mytmpdir/
Third you might run in troubles if two people uploading at the same time and using the same file names would overwrite the files of each other so you might need to add a unique value to the file name which you can remove when you actually insert the image into the database (if you also store the filename in the database).
The biggest problem in my case was the first problem (two lines) which always led to the problem that the image couldn't be moved.
Hope this helps you 🙂
Thomas