Plupload:无法上传视频iphone ios 8.3

时间:2015-04-13 18:22:46

标签: iphone video ios8 plupload

无法在ios 8.3 iphone上使用plupload上传视频。 问题是我不会收到FilesAdded事件。 代码适用于同一手机上的图片上传,并且代码在Mac上的谷歌浏览器中工作正常。

that.videoUploader = new plupload.Uploader({
  browse_button: that.videoUploadBtn.get(0),
  url: 'video-upload'
  runtimes: 'html5,flash',
  flash_swf_url: 'js/Moxie.swf',
  // multiple_queues : false,
  multi_selection : false,
  // max_file_size : '100mb',
  // max_file_count : 1,
  // chunk_size: '200kb',
  // max_retries: 3,
  autostart: true,
  filters : [
    { title : "Image files", extensions : "mp4" }
  ]  
});

that.videoUploader.init();
that.videoUploader.bind('FilesAdded', that.videoHandlePluploadFileSelected);
that.videoUploader.bind('FileUploaded', that.videoHandlePluploadFileUploaded);   

Upload.prototype.videoHandlePluploadFileSelected = function(uploader, file) {
  alert("start upload!");
  uploader.start();
}

1 个答案:

答案 0 :(得分:0)

过滤器部分搞砸了所有东西。问题解决了删除该部分。