【问题标题】:plupload 2.1.2 does not upload imagesplupload 2.1.2 不上传图片
【发布时间】:2014-12-18 00:39:14
【问题描述】:

我在从官方页面https://codeload.github.com/moxiecode/plupload/zip/v2.1.2 下载后尝试安装 plupload,但它根本不上传图像,尽管它显示上传完成 100%,而在本地主机上我收到此消息:HTTP 错误。上传 URL 可能有误或不存在。 index.html 在示例文件夹中,这是主要代码

<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/

【问题讨论】:

  • 问题已解决,谢谢

标签: jquery image-uploading plupload


【解决方案1】:

抱歉文件夹路径错误,已修复

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-05
    • 2012-11-29
    • 1970-01-01
    • 2021-03-19
    相关资源
    最近更新 更多