|
Upload Error 1
$uploaddir = '/home/jay/miguel/music/';
$uploadfile = $uploaddir . basename($_FILES['mediaFile']['name']);
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "File is valid, and was successfully uploaded.\n";
} else {
echo "Possible file upload attack!\n";
echo '<pre>';
print_r ($_FILES);
echo '</pre>';
}
Gets me the error
Possible file upload attack!
Array
(
[mediaFile] => Array
(
[name] => all 4 one - i can love you like that.mp3
[type] =>
[tmp_name] =>
[error] => 1
[size] => 0
)
)
Funny that code looks real simple... I have write permissions to the directory. What's wrong?
__________________
I'm gonna find a way to download the internet if its the last thing I do...
Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished
|