How to upload files using HTML to website?

Asked: Apr 15, 2023

The uploading of files requires some necessary configuration like :An HTTP server that acts as a transaction between the user and the server. Access to the directory of cgi-bin that consists of the receiving script.

There are some scripts that are already available. Form for the implementation and the coding of it will be like:

<form method="post" enctype="multipart/form-data" action="up.cgi">

The form that has to be uploaded will be done by the following given code:

<input type=file name=upload><br>

This tag will contain the file name that has to be uploaded on the website.

Any remarks about the file will be written like:

<input type=text name=remark><br>

<input type=submit value=Press> This form will allow user to upload their own file in an easy way.

</form>

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!