我正在尝试从官方页面https://codeload.github.com/moxiecode/plupload/zip/v2.1.2下载后安装plupload但它根本不上传图像,虽然它显示上传完成100%而在localhost上我收到此消息:HTTP错误。上传网址可能有误或不存在。 index.html在examples文件夹里面,这里是主代码
<div id="uploader">
<p>Your browser doesn't have Flash, Silverlight or HTML5 support.</p>
</div>
<script type="text/javascript">
// Initialize the widget when the DOM is ready
$(function() {
$("#uploader").plupload({
// General settings
runtimes : 'html5,flash,silverlight,html4',
url : "/upload",
// Maximum file size
max_file_size : '2mb',
chunk_size: '1mb',
// Resize images on clientside if we can
resize : {
width : 200,
height : 200,
quality : 90,
crop: true // crop to exact dimensions
},
// Specify what files to browse for
filters : [
{title : "Image files", extensions : "jpg,gif,png"},
{title : "Zip files", extensions : "zip,avi"}
],
// Rename files by clicking on their titles
rename: true,
// Sort files
sortable: true,
// Enable ability to drag'n'drop files onto the widget (currently only HTML5 supports that)
dragdrop: true,
// Views to activate
views: {
list: true,
thumbs: true, // Show thumbs
active: 'thumbs'
},
// Flash settings
flash_swf_url : '../js/Moxie.swf',
// Silverlight settings
silverlight_xap_url : '../js/Moxie.xap'
});
});
在线页面,以便您查看页面来源并查看http://mawk3y.net/plupload/examples/
答案 0 :(得分:0)
抱歉文件夹路径错误并已修复