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.
I really like this class, but I am having a strange behaviour running this on Win7 64Bit with XAMPP. When uploading a file with spaces in the name, the spaces should be replaced with underscores. But they're replaced with char "Z" instead. Can anyone approve this?Reply
All files and the web page itself are UTF-8, this was the first thing to check. I will just leave the lines swapped and see if it works correctly without side effects. Thanks for reply! I like this class very much, thanks for the good work!Reply
After changing the order of the replacements, putting
at first, the file name is okay. But I don't know about any side effects.
I cannot test with Windows (nor support the class on Windows). But the swapping of the lines you did shouldn't be a problem.