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.
more info about the class
.asf video/x-ms-asf .asx video/x-ms-asf .wma audio/x-ms-wma .wax audio/x-ms-wax .wmv audio/x-ms-wmv .wvx video/x-ms-wvx .wm video/x-ms-wm .wmx video/x-ms-wmx .wmz application/x-ms-wmz .wmd application/x-ms-wmd