In this post you will learn some basics to upload file to server. The basic idea behind uploading file is to allow user to include whole of the files from their system to form submission. The type of files can be text, image or any other data file.
For text file uploading is much more convenient and better way rather than cutting and pasting. If we talk about image files it’s a more practical way.
The terms file input and file submission are synonyms for the term file upload.
A file basically is a HTML page with input element type = “file”. This way one can add one or more files at the time of file submission.in file upload files are stored on the disk of the hosting server after processing.
Please check the code given below. This will help.
- First of all you need to add the following “enctype” to the form i.e.
You need to write the form as
<form method=” ” action=”” enctype=”multipart/form-data”>
- Then you need to define <input type = “file” name=””> in the form.
- Now when you submit the form these values will be there.
Leave a comment