Answer the question
In order to leave comments, you need to log in
How to upload a file to the server via POST request?
The task is to transfer the file from the computer (windows) to the controller (ubuntu) through the web face. That is, the user must select a file through the html form and this file is loaded into a specific directory of the controller. The problem is that in the POST request received from the page, there is no link to the file. The server is lighttpd, the c++ programming language.
<h2>Загрузка ПО</h2>
<form enctype="multipart/form-data" action="cgi?downloadpost" method="post">
<fieldset><label> Укажите путь к загружаемому файлу <input name="g1" type="file"></label></fieldset><p> </p><p align=right><input type="submit" name="button" value="Загрузить" />
</p></form>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question