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.
If you follow my solution, you don't let the script generate your folders. You create your own, using these commands, just after the <?php of upload.php
The thing you've got to do is this: disable these in both class.upload.php and upload.php:
If you follow my solution, you don't let the script generate your folders. You create your own, using these commands, just after the <?php of upload.php
$folderName is a variable you post from the form Process('../YourFolder/'.$imageName.'');
You'll see that the directories and files you create are completely writeable. Maybe this is a nice thing to include with the oncoming version?
Greetings!