an easy file upload script.
specify the filetypes allowed, the max filesize and the directory to upload the files.

copy the code of file handling / file upload

click here to select all the code