class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
See all posts Reply
$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); }
I try to upload a pdf file but the process method hangs up and doesn't display any error message. My script:
Best regards.