Forum Moderators: coopster
copy($_FILES['userfile']['tmp_name'], $imageDIR.$_FILES['userfile']['name'])or die("Could not copy");
I have various tests surrounding that snippet confirming submission of the file etc reports no errors, just wont upload the file to temp dir or the one i set as copy location. Changed and check php temp file dir and nothing is loaded in there either
Any help?
A few things to check.
1. Does the upload directory exist?
2. Is the upload directory writeable?
3. Are your variables coming from the form correctly? Try print_r($_FILES) to see the data populating the $_FILES array.
4. Are all your paths correct?
5. Echo $_FILES['userfile']['error'] for debugging.
dc