You can upload files using a web form. In the <FORM> tag, use the enctype="multipart/form-data" attribute so that the browser knows that more than just text variables are being sent. Actually, a binary stream is sent. In the input field definition, the type="file" attribute will display the text field with an accompanying BROWSE button, used to pick the target file.
The following code:
<form method="post" enctype="multipart/form-data" action="ServerScriptToRun"> File: <input type="file" name="uploaded_file" size="70"></form>Will produce the following input box and BROWSE button:
Test it out. Click the BROWSE button and pick a file. Your file, and its path, will be inserted into the input box. Add a SUBMIT button that submits the file to the server for processing. For more information see ZDNET. See more detailed information about forms from W3C. Here is a good example of a PHP script (on server) that processes the uploaded file.