plupload icon indicating copy to clipboard operation
plupload copied to clipboard

Upload not works on android wechat

Open dfang opened this issue 8 years ago • 14 comments

on iOS Uploading works very well, but on android wechat within some wifi network,FilesAdded, BeforeUpload, UploadFile and UploadProgressevents triggerd but FileUploaded didn't. there's even no request on server logs, but switch to connect with my iOS hotspot, it works well.

it's really really weird ! here is the config:

webUploader = new plupload.Uploader({
      runtimes        : 'html5, flash, html4',
      browse_button   : pickerId,
      max_file_size   : '10mb',
      url             : uploadUrl,
      flash_swf_url   : '/uploader.swf',
      filters         : [ { title : "图片文件", extensions : "jpg,jpeg,gif,png,bmp" } ],
      file_data_name  : 'file',
      multipart       : true,
      multi_selection : false,
      dragdrop        : false,
      max_retries     : 3,
      multipart_params: { authenticity_token: $('meta[name="csrf-token"]').attr('content') }
    })

dfang avatar Aug 09 '16 07:08 dfang

Same here

suhaotian avatar Jan 09 '17 08:01 suhaotian

+1

viktor-yang avatar Jun 09 '17 03:06 viktor-yang

Hi, guys, Not working in wechat ? Solution is here : https://www.zhihu.com/question/54623070

@colorwin @dfang

suhaotian avatar Jun 14 '17 02:06 suhaotian

@suhaotian I use version 2.3, but I can't find this line:

"image/jpeg,jpg jpeg jpe," +

I find 3.x has this line, but it seem not compatible to my project.

viktor-yang avatar Jun 15 '17 05:06 viktor-yang

@colorwin Here: image

suhaotian avatar Jun 17 '17 23:06 suhaotian

@suhaotian Thanks, I find it.

viktor-yang avatar Jun 19 '17 05:06 viktor-yang

Did adding image/jpg mime-type solve the problem?

jayarjo avatar Aug 18 '17 10:08 jayarjo

@colorwin sorry not familiar with wechat is it messaging app? does it use Plupload to upload something?

jayarjo avatar Aug 18 '17 10:08 jayarjo

@jayarjo Yeah, wechat is a messaging app in China, it can browse web in inner app. It use itself X5 blink which seem based on webkit.

Some android phones user report some upload problems in wechat's inner browser(I use Plupload to do upload job):

  1. Click the file button but no response.(major)
  2. No response after file choose.
  3. Can't use system album, only can use picture.

But I also can't appear these issue. After adding image/jpg mime-type , the report seem become less, but still have. At the last, my boss transfer the upload file job to APP, so I am sorry to not know more.

Last but not least, my boss guess that some ardroid phone are too old to tune up andriod webview. I am in China, but our user are major in foreign country. Network related?

viktor-yang avatar Aug 19 '17 02:08 viktor-yang

image/jpg is kind of invalid mime-type, that's why I was wondering. Can you specify an exact platform that has these problems all the time? So that we could reproduce the problem reliably.

@suhaotian what was the Android platform in your case?

jayarjo avatar Aug 19 '17 04:08 jayarjo

@jayarjo It's wechat's webview bug, not android ~

suhaotian avatar Aug 21 '17 03:08 suhaotian

@suhaotian so wechat's webview bug for some reason requires invalid jpeg mime type (image/jpg)?

Also do you know if this happens with other file types, or only - jpegs?

jayarjo avatar Aug 21 '17 10:08 jayarjo

Yes, wechat's webview bug for some reason requires invalid jpeg mime type (image/jpg).

I can't answer second question, Maybe tonight go home test it with .png picture.

suhaotian avatar Aug 22 '17 07:08 suhaotian

@suhaotian Thanks for sharing :) I met a problem on android wechat. The wechat webview pop up a toast of "No apps can perform this action." I left this hint for the rest people who have the same problems : P

Dragon-Rider avatar Jul 26 '18 05:07 Dragon-Rider