在客户端-jQuery文件上载中调整图像大小后,图像变为黑色

在客户端-jQuery文件上载中调整图像大小后,图像变为黑色,jquery,file-upload,blueimp,Jquery,File Upload,Blueimp,我使用jQuery文件上传作为上传程序,当我启用图像大小调整器时,一些用户会得到黑色图像 因此,当他们选择图像预览图像时,一切正常,但当他们单击“确认”开始上传图像时,结果是黑色图像,这在使用Chrome浏览器的移动设备上发生 以下是我在页面上初始化插件的方式: jQuery(function () { 'use strict'; // Initialize the jQuery File Upload widget: jQuery('#formular').fileupload({ // Un

我使用jQuery文件上传作为上传程序,当我启用图像大小调整器时,一些用户会得到黑色图像

因此,当他们选择图像预览图像时,一切正常,但当他们单击“确认”开始上传图像时,结果是黑色图像,这在使用Chrome浏览器的移动设备上发生

以下是我在页面上初始化插件的方式:

jQuery(function () {
'use strict';
// Initialize the jQuery File Upload widget:
jQuery('#formular').fileupload({
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
url: '/upload_image.json',
    dataType: 'json',
    previewMaxWidth: 180,
    previewMaxHeight: 135,
    autoUpload: false,
    maxFileSize: 73400320,  
    loadImageMaxFileSize: 73400320,
    imageMaxWidth: 640,
    imageMaxHeight: 480,
    disableImageResize: /Android(?!.*Chrome)|Opera/
        .test(window.navigator.userAgent),
process: [
        {
        action: 'load',
        fileTypes: /^image\/(gif|jpeg|png|jpg)$/,
        maxFileSize: 73400320
        },
        {
        action: 'resize',
        maxWidth: 640,
        maxHeight: 480
        },
        {
        action: 'save'
        }
    ],

    sequentialUploads: true,
    acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
    singleFileUploads: true,    
    submit: function(e ,data){
            data.formData = [{
                                    "name" : "action",
                                    "value" : "upload_image",
                            },
                            {
                                    "name" : "current_instance",
                                    "value" : CURRENT_INSTANCE
                            },
                            {       "name" : "category_id",
                                    "value" : jQuery('#category_group').val()
                            },
            {
                "name" : "image_rotate_value",
                "value" : jQuery('#image_rotate_value').val()
            }
            ];
    }
});

// Enable iframe cross-domain access via redirect option:
jQuery('#formular').fileupload(
    'option',
    'redirect',
    window.location.href.replace(
        /\/[^\/]*$/,
        '/cors/result.html?%s'
    )
);
});
以前有人经历过吗

我到处找,什么也没找到


谢谢

你找到答案了吗?没有,我不知道为什么会出现这个问题,但似乎是来自一些手机制造商,这些是获得黑色图像的用户代理:1-联想A850+联想A850+2-HM NOTE 1W 3-联想S939 4-华为G750-U10 5-酷派8297W 6-维梧X3S 7-酷派7320Hi,你有没有找到一个答案或者别的什么,也许是为了重现这个问题?