내 컴퓨터/로컬 호스트에서 YUI 업 로더 작업을 시도하고 있습니다 (using this example). 자바 스크립트 페이지 사용, can be view here.YUI 업 로더를 사용하여 upload.php를 실행할 수 없습니다.
YUE.on('upload', 'click', this.upload, null, this);
(...)
upload : function(e) {
YUD.get('browse').style.display = 'none';
this.uploader.disable();
this.uploader.uploadAll('wp-content/themes/storelocator/include/upload.php', 'GET');
},
PHP 파일은은 다음과 같습니다 :
업로드 버튼은 다음 핸들러가 내가 업로드 버튼을 클릭하면
<?php
echo "TEST";
?>
, 페이지를 다시로드,하지만 아무것도 에코되지 않습니다. 업로드 버튼은 간단한 html 버튼 <button id="upload">Upload</button>
입니다.
"테스트"가 에코되지 않는 이유가 있습니까?
YUI 업 로더는 플래시를 사용합니다. 그리고 this.uploader는 플래시 프로그램의 인스턴스입니다. – Steven