That is a HTML part: (I guess there is an error)
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-
<html>
-
<head>
-
<meta content="text/html; charset=ISO-8859-1"
-
http-equiv="content-type">
-
<title></title>
-
</head>
-
<body>
-
<form enctype="text/plain" method="post"
-
action="load.cgi" name="someform"><input
-
name="file" type="file"><input name="send"
-
value="send" type="submit"></form>
-
</body>
-
</html>
PS. Somehow I returns only filename, but without content. And by the way, if you find an error, how fill look content like? I mean where sould script look for content? In this form it returns: send=<somefilename> . How will be content marked?
Here is an example how it works at the moment:
file=av-230.jpg&send=send
When script reads that post data, the only thing it can do, is just to write empty file with given filename. But I also need file content, because writing of empty file is aimless.
About script side.
Script is written on C++. I reads "post" data, searches for required values and then operates with them. I'm not sure, but maybe script has to request content of file separately? If it's so, then, how can it be done?