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.
thank you for your great upload-class. i would like to propose two new features:
1. a methode to configure which extensions are dangerous to upload. i.e. adding .inc to the default set of dangerous extensions.
2. a methode, which checks, if an uploaded file could be dangerous BEFORE processing it. so i could check the uploaded file and decide, if i want to save the name in a database. if i could do this before processing the file, i save some performance and i do not need to unlink the file, which has after processing an other extension (.txt) as the original uploaded file.
1. a methode to configure which extensions are dangerous to upload. i.e. adding .inc to the default set of dangerous extensions.
2. a methode, which checks, if an uploaded file could be dangerous BEFORE processing it. so i could check the uploaded file and decide, if i want to save the name in a database. if i could do this before processing the file, i save some performance and i do not need to unlink the file, which has after processing an other extension (.txt) as the original uploaded file.
what do you mean about these features?