Problem with no image file

See all posts Reply

Problem with no image file new!
by padalec, 13 years, 9 months ago
Hi,
I try to upload a pdf file but the process method hangs up and doesn't display any error message. My script:
$oFileUpload = new upload($_FILES['myfile']);                
if ($oFileUpload->uploaded()) {
    $oFileUpload->file_dst_name_body = 'test';
    $oFileUpload->file_overwrite = true;
    //save to log file - ok
    $oFileHandle = fopen(PATH.'www/log-upload.html','a+');
    fwrite($oFileHandle,$oFileUpload->log);
    fclose($oFileHandle);
    
    $oFileUpload->process('/upload/file/');
    //save to log file - failed 
    $oFileHandle = fopen(PATH.'www/log-upload-p.html','a+');
    fwrite($oFileHandle,$oFileUpload->log);
    fclose($oFileHandle);
}
Reply
Re: Problem with no image file new!
by colin, 13 years, 9 months ago
Does it work with smaller files? Or files other than PDF?Reply
Re: Problem with no image file new!
by padalec, 13 years, 9 months ago
I try upload txt, doc etc. and it dosn't work with any of this files. The file size is somthing about 400 KB.
Best regards.Reply
Re: Problem with no image file new!
by colin, 13 years, 9 months ago
Do you have any errors in your web server log?Reply
Re: Problem with no image file new!
by padalec, 13 years, 9 months ago
No I haven't. Only error page was displayed Connection closed by serverReply