Images and files can be uploaded/submitted to server by setting enctype attribute of form tag to multipart/form-data.
enctype specifies how form data would be encoded while submitting to the server.
Example
<form method="post" enctype="multipart/form-data" action="/?originalUrl=https%3A%2F%2Friptutorial.com%2F%26quot%3Bupload.php%26quot%3B%26gt%3B%2520%2520%2520%2520%2520%26lt%3Binput%2520type%3D%26quot%3Bfile%26quot%3B%2520name%3D%26quot%3Bpic%26quot%3B%2520%2F%26gt%3B%2520%2520%2520%2520%26lt%3Binput%2520type%3D%26quot%3Bsubmit%26quot%3B%2520value%3D%26quot%3BUpload%26quot%3B%2520%2F%26gt%3B%26lt%3B%2Fform%26gt%3B%253C%2Fcode">