OK I have this:
I want it so that the file they are uploading already exists it changes to another name.
For example. A person uploads the file button.jpg. that file is uploaded. Now antoher person also uploads button.jpg but the name is changed to button4824,jpg or something like that.
also how can i make it so that they can only upload .jpg .gif and .png?
PHP:
//MOVE BUTTON TO FOLDER
if(move_uploaded_file ($_FILES['upload']['tmp_name'],"buttons/{$_FILES['upload']['name']}")) {
print "";
} else {
print "There was a problem uploading your file.";
exit;
}
For example. A person uploads the file button.jpg. that file is uploaded. Now antoher person also uploads button.jpg but the name is changed to button4824,jpg or something like that.
also how can i make it so that they can only upload .jpg .gif and .png?






