Quote:
Originally Posted by Beller
Installed Thanks!!!
I am getting "Upload failed" Every so often with no reason given.
It doesn't seem to be on large files. Any ideas?
Could this just be my connection sometimes?
|
Quote:
Originally Posted by DementedMindz
that or your hosting cause I never got it once.
|
Right, it's something in your connection, php.ini setup dealing with the file size, or server issue. Here's the code that generates the error:
PHP Code:
if (move_uploaded_file($_FILES['upload']['tmp_name'], $dl->url.$newfilename))
{
chmod($dl->url.$newfilename, 0666);
$size = @filesize($dl->url.$newfilename);
}
else
{
$errors['message'] .= '<center><span style="color: red;">The upload failed! Upload error.</span></center><br />';
}
Basically, if the attempt to move the uploaded file from your server tmp area to the downloads folder fails, the error appears. The exact cause cannot be determined by this program.