0

这是我用来将图像上传到服务器的代码。但它返回“在此服务器上找不到请求的 URL /”。错误。

<form name="uploadFile" action="http://http.brammies.com" method="post" enctype="multipart/form-data" onSubmit="return validate();">
<input type="hidden" name="choice" value="upload">
<table align="center">
<tr>
<td><span style="color:red;font-weight:bold">Upload files</span></td><td><input type="file" id="ufile" name="ufile" onKeyPress="return false;" style="BACKGROUND-color:Thistle">(* jpg,gif,png)</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="submit" value="Upload" style="BACKGROUND-color:Thistle"></td>
</tr>
</table>
</form>

谁能告诉我我的代码有什么问题?

4

1 回答 1

1

URL http://http.brammies.com不引用表单处理程序。从外面看,无法判断action属性值应该是什么。

从直接访问http://http.brammies.com时服务器给出的响应来看,属性值似乎应该是http://http.brammies.com/cgi-bin/后跟一些 CGI 的文件名脚本。

于 2013-10-28T05:17:43.727 回答