I have a problem. I need to upload file over CGI script(on C++).
For example, there is some form that makes user choose file, and after pressing "Submit" button script must write this file to server. The problem is, that, form return only filename, but does not show it's content... Do you have any ideas how it's possible to get file content?
Expand|Select|Wrap|Line Numbers
- <form method="get"><input type="file" name="filename"><input type="submit" name="submit" value="OK"></form>
Actually, if I could get that file's data, it's not a huge problem to write it to the hard disk, but how to get it's data?
PS. Maybe I missed some options in the form?