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.
PHP 5.4.1 (cli) (built: May 1 2012 10:10:18) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
when we need to send the output to the browser straight, we need to use NULL instead of an empty string ''
From documentation: filename The path to save the file to. If not set or NULL, the raw image stream will be outputted directly. To skip this argument in order to provide the quality parameter, use NULL.
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
when we need to send the output to the browser straight, we need to use NULL instead of an empty string ''
From documentation:
filename
The path to save the file to. If not set or NULL, the raw image stream will be outputted directly.
To skip this argument in order to provide the quality parameter, use NULL.
and some others - replace with
hope this will solve the issues some might be facing now.