Reply to Problem with no image file

Problem with no image file new!
by padalec, 14 years, 2 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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important