0
내 사용자 정의 워드 프레스 템플릿에서 간단한 파일 업로드 양식을 만들려고 해요는 :
<form action="<?php echo $current_url = home_url(add_query_arg(array(),$wp->request)); ?>" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>
에 제출의 $_FILES
배열이 비어 있습니다.
action
에 투입해야합니까
http://domain.com/somepost.php
의 좋은 URL이기 때문에 문제의 action
에 생각, 그래서 $_FILES
을 얻을?
그냥 빈 액션을 시도하고 당신이 제출 형성하는 경우는 $ _FILES ARRAY 당신 같은 페이지를 얻을 .. – Mayur
을 나는 빈 얻을 어떤 이유로'$를 들어, '의회 처리를 비워 둘 때 _FILES' 배열 ... – user1049961