我尝试在一个隐藏的输入后base64编码的图像(〜500KB)和我得到的是一个错误发布base64编码文件的问题
501 Method Not Implemented
GET to /test.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
我的代码
<?php error_reporting(E_ALL) ?>
<html>
<head></head>
<body>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">
<input type="hidden" name="image" value="{base64 encoded image}">
<input type="submit" name="" value="OK">
</form>
<?php if($_POST) {
echo '<pre>'.print_r($_POST, true).'</pre>';
} ?>
</body>
</html>
PS。在本地主机上一切正常。
感谢您的帮助。
它是图像的错吗? – oneat 2010-09-13 16:26:55
不支持GET/test.php吗?但是你说你正在做'POST'? – 2010-09-13 16:29:31
@oneat No.我只是测试,所以我的代码只是形式和print_r($ _ POST); – kat 2010-09-13 16:31:48