이것은 멍청한 질문이지만, Valum의 업 로더가 내가하는 일과 상관없이 일할 수 없습니다. zip 파일에서 파일을 추출하고 클라이언트 폴더에서 demo.htm 페이지를 시도했지만 업로드 할 때마다 업로드가 실패했다는 메시지가 나타납니다. 누군가 이걸 사용하는 법을 말해 줄 수 있습니까? 또한 action 매개 변수는 어떻게 사용합니까?Valum의 업 로더 데모 프로젝트 사용 방법
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="fileuploader.css" rel="stylesheet" type="text/css">
<style>
body {font-size:13px; font-family:arial, sans-serif; width:700px; margin:100px auto;}
</style>
</head>
<body>
<p><a href="http://github.com/valums/file-uploader">Back to project page</a></p>
<p>To upload a file, click on the button below. Drag-and-drop is supported in FF, Chrome.</p>
<p>Progress-bar is supported in FF3.6+, Chrome6+, Safari4+</p>
<div id="file-uploader-demo1">
<noscript>
<p>Please enable JavaScript to use file uploader.</p>
<!-- or put a simple form for upload here -->
</noscript>
</div>
<script src="fileuploader.js" type="text/javascript"></script>
<script>
function createUploader(){
var uploader = new qq.FileUploader({
element: document.getElementById('file-uploader-demo1'),
action: 'fileuploader.js',
debug: true
});
}
// in your app create uploader as soon as the DOM is ready
// don't wait for the window to load
window.onload = createUploader;
</script>
</body>
</html>
서버에서 실행하고 있습니까? 하드 드라이브에서 실행하는 것처럼 들립니다. –
예, 로컬 컴퓨터에서 데모 프로젝트를 실행하고 있습니다. – Halcyon