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.
It is indeed strange. It shouldn't behave like this. The MIME type is properly detected as being an image... but for some reason, the source file doesn't have an extension: file_src_name_ext : It should be something like: file_src_name_ext : jpg
Because of this inconsistency, the file is considered as a potential script, and adds the .txt extension.
What is the filename of the file you try to upload? What browser do you use? On which system? Which version of PHP? Apache?
As a temporary fix, you can disable the script checking:
file_src_name_ext :
It should be something like:
file_src_name_ext : jpg
Because of this inconsistency, the file is considered as a potential script, and adds the .txt extension.
What is the filename of the file you try to upload? What browser do you use? On which system? Which version of PHP? Apache?
As a temporary fix, you can disable the script checking: