Blueimp/jQuery-File-Upload 플러그인과 함께 codeigniter를 사용하여 서버의 폴더에 파일을 업로드하는 데 성공했습니다. 그러나, 나는 action = "/ upload/success"형식으로 문제를 겪고 있으며 일부 파일을 성공적으로 업로드 한 후 볼 수있는 실제 "success.php"뷰 파일을 표시합니다. 내가 여러 파일을 업로드 할 때Codeigniter를 사용하여 Answered-Blueimp/jQuery-File-Upload 플러그인 성공 업로드보기 파일이 텍스트이고 HTML 웹 페이지가 아닌 이유는 무엇입니까?
function index() {
$this->load->view('upload/index'); // this is the index.php in the parent directory of the plugin
}
function success() {
require('server/php/index.php'); // this is the index.php inside the server folder of the plugin
// don't need to load a view file, $this->load->view('upload/success"); it's AJAX
}
그래서 기본적으로 문제 출력 텍스트가 아닌 HTML 점이다 :
다음은 "업로드"컨트롤러의 관련 부분입니다.
업로드/success.php보기 파일을 실제로 HTML 페이지로 만드는 방법에 대한 의견이 있으십니까?