To allow uploading files to web server via HTTP we should: 1) create web page with form: <form action=’my_script.epl’ method=POST enctype="multipart/form-data" > <input type=’hidden’ name=’action’ value=’upload’ /> <input type=’file’ name=’my_file’ size=’20’ /> < input type=’submit’ name=’submit’ value=’Upload’ /> </form> Pay attention to enctype! If you define it not correct you will not be able to get file handler after submitting your form.