douju1365 2018-10-20 02:09
浏览 237

我正在尝试使用plupload上传视频,但我得到了奇怪的文件而不是视频文件

This is a code I am using in javascript I can;t upload video files it works fine for images. there is an image of files I get after trying to upload video files

enter image description here

 var uploader = new plupload.Uploader({
            // General settings
            runtimes : 'silverlight,html4',
            browse_button : 'pickfiles', // you can pass in id...
            url : 'upload.php',
            chunk_size : '1mb',
            unique_names : true,
     
            // Resize images on client-side if we can
            resize : { width : 320, height : 240, quality : 90 },
            
            filters : {
                max_file_size : '10mb',

                // Specify what files to browse for
                
                mime_types : "image/*,application/zip,video/mp4"
            },
     
            flash_swf_url : '../js/Moxie.swf',
            silverlight_xap_url : '../js/Moxie.xap',
             
            // PreInit events, bound before the internal events
            preinit : {
                Init: function(up, info) {
                    log('[Init]', 'Info:', info, 'Features:', up.features);
                },
 
            UploadFile: function(up, file) {
                log('[UploadFile]', file);
 
                // You can override settings before the file is uploaded
                // up.setOption('url', 'upload.php?id=' + file.id);
                // up.setOption('multipart_params', {param1 : 'value1', param2 : 'value2'});
            }
        },

if you have any idea write anything you have in mind.

thanks in advance

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?
    • ¥15 matlab(相关搜索:紧聚焦)
    • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计