Any help would be greatly appreciated!
Here's what I have
$target_path = "uploads/"; $path_parts = pathinfo($_FILES['uploadedfile']['tmp_name']); $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if($_POST['MAX_FILE_SIZE'] >= filesize($_FILES['uploadedfile']['tmp_name']) && !in_array($path_parts['extension'], $badextensions)) { if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { ?> html stuff... <? } else{ echo "There was an error uploading the file, please try again!"; } } else { echo "File can not be uploaded."; }
The uploads directory is chmodded to 777, at least for now. It always shows "There was an error uploading the file, please try again!"...
Oh, I should probably mention that I diddly-squat experience and knowledge of uploads...
Edited by DeathRay2K, 11 July 2006 - 05:06 AM.