문제의 범위를 좁히려면 아래의 스크립트에서 관련이없는 코드가 모두 제거되었지만 지금까지도 '베어 본'으로 넘어가더라도 여전히 작동하지 않습니다.내 파일 업로드 양식이 작동하지 않는 이유는 무엇입니까?
웹 서버 오류 로그에이 문제와 관련된 오류가 없으며 print_r ($ _ Files)이 비어 있습니다. 이 일을 멈추게 할 수있는 것은 무엇일까?
업로드하려는 파일이 20KB입니다. PHP 서버 변수 upload_max_filesize = 100M 및 post_max_size = 101M.
<?
echo 'Here is some debugging info:';
print_r($_FILES);
if ($_FILES['image']['name']) {
echo "\n\nFiles Detected";
} else {
?>
<!DOCTYPE HTML>
<html>
<head>
<title>File Upload</title>
</head>
<body>
<form
action = "<?=$_SERVER['PHP_SELF']?>"
enctype = "multipart/form-data"
name = "uploadImage">
Upload:
<input type='file' name='image'><br><br>
<input type="submit" value="Upload">
</form>
</body>
</html>
<? } ?>
파일이 검색되지 않습니다.
직장에 방화벽이 있습니까? – Cups
양식에 method = "POST"를 추가 했습니까? –
아, 그래, 누락 된 게시물 mthod 어쩌면, http://php.net/manual/en/features.file-upload.post-method.php 나는 "직장에서 나던 일"에 대한 의견을 듣고있어 ... – Cups