PHP: - UPLOAD FILES
To perform upload file operation we need to create one folder where we want to place our uploaded file and second one PHP page.
Here in above program we can see that we are able to display the file name, size, type and ONE OF THE IMPORTANT Part is $_FILE[“filename”][“tmp_name”] . The $_FILE[“filename”][“tmp_name”] is something different from the others, when we do process of file upload each file is sent to temporary location on your server and ready to do the process and store it some related folder.
Till now you can upload any file but if we forced user to upload only images file then we need to modify/add some PHP code in our page . Before do any operation let’s check it out our folder ”upload_your_file”.
NOW after uploading image to specific location check it out your folder.





No comments:
Post a Comment