I'm making an image/video hosting site but I have no idea how to make the upload button upload the file, could someone provide a simple script that chacks the file size (<100001) checks the extension (gif,jpg,jpeg,mpg,png) and generates a random name for the file, if the names in use it generates another one with one more character ect until it has a unique name. The location of teh uploaded file on the server if possible should be similar to
/uploads/file.php?file=filename.extension
if anyone could do that it would be great, the file size checker isnt essential but preferred. thanks in advance
/uploads/file.php?file=filename.extension
if anyone could do that it would be great, the file size checker isnt essential but preferred. thanks in advance




