<?php if(isset($_POST["btnSubmit"])){ $photo=$_FILES["file"]["name"]; copy($_FILES["file"]["tmp_name"],"uploads/".$photo); echo "Successfully Uploaded"; } ?> <form action="#" method="post" enctype="multipart/form-data"> Album Image : <input type="file" name="file" /> <input type="submit" name="btnSubmit" value="Submit" /> </form>4. Run your script with a browser and submit 5. Now check your photo to uploads folder.
Comments 1