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
$handle = new upload($_FILES['image']); var_dump($handle);
object(tools\upload)#147 (134) { ["version"]=> NULL ["file_src_name"]=> NULL ["file_src_name_body"]=> NULL ["file_src_name_ext"]=> NULL ["file_src_mime"]=> NULL ["file_src_size"]=> NULL ["file_src_error"]=> NULL ["file_src_pathname"]=> NULL [...]
upload($file, $lang = 'en_GB')
__construct($file, $lang = 'en_GB')
Nothing worked for me, no errors, no blank pages, no logs and no upload.
After some research, it appears that I all attributes were set to Null.
I got :
Solution : renaming the constructor from
to
I work with PHP Version 5.3.10-1ubuntu3.1