Monokeros
Monokeros
  • 发布:2015-04-23 23:33
  • 更新:2017-09-30 15:01
  • 阅读:3741

Uploader的pause()和abort()方法无效?

分类:HTML5+

在Android上反复测试,确认使用 plus.uploader.createUpload() 方法创建的 task,使用 start() 开始后,无法用pause()或abort()停止上传。奇怪的是,不仅调用这两个方法无效,即便整个包含uploader实例的WV被close掉,上传仍会继续,继续调用onstatuschange和oncomplete...

求官方查证。

以下是我的debug log:

> [wv_newitem_content.html][icang.ui.photopicker.js] Choose image from GALLERY... at js/icang.js:30
[wv_newitem_content.html][icang.ui.photopicker.js] Chose image: file:///storage/extSdCard/tencent/MicroMsg/WeiXin/mmexport1429584231520.jpg at js/icang.js:30
[wv_newitem_content.html][identify/newitem.c.js] Adding new image upload task: kSnselkLkb at js/icang.js:30
[Class.Uploader] Initializing uploader to url = http://192.168.0.251/icang/server/identify.php at js/icang.class.js:14
[Class.Uploader] Added file: itemimage = file:///storage/extSdCard/tencent/MicroMsg/WeiXin/mmexport1429584231520.jpg at js/icang.class.js:14
[Class.Uploader] Start uploading file... at js/icang.class.js:14
[HBuilder][icang.geo.js] Geolocation updating... at js/icang.js:30
[wv_newitem.html][icang.wvmanager.js] Closing page: wv_newitem.html at js/icang.js:30
[wv_newitem_content.html][identify/newitem.c.js] Canceling 2 upload tasks... at js/icang.js:30
[Class.Uploader] Upload canceled! at js/icang.class.js:14
[Class.Uploader] Upload canceled! at js/icang.class.js:14
[HBuilder][icang.geo.js] Geolocation error: No location providers available. at js/icang.js:30
[Class.Uploader] Upload success: http://192.168.0.251/icang/server/identify.php at js/icang.class.js:14
Uncaught TypeError: Cannot read property 'extras' of null
[Class.Uploader] Upload success: http://192.168.0.251/icang/server/identify.php at js/icang.class.js:14
Uncaught TypeError: Cannot read property 'extras' of null
[HBuilder][icang.geo.js] Geolocation updating... at js/icang.js:30

2015-04-23 23:33 2 条评论 负责人:无 分享
已邀请:
Oscar

Oscar - 我是我认为的我!

这个处理了么?我也有同样的问题

Laster

Laster - 叽哈哈~~! Hbuilder

我上次也提问了,就只说了是bug 一直都还没处理 - - 唉

l***@sina.com

l***@sina.com

我也是同样的问题,服务器都返回200,上传已经完成了,onStateChanged还在触发,希望官方人员尽快处理,要不赶紧关门走人!给你们说了这么多问题,连个反馈都没有,伤心。

Taikoo

Taikoo

我最近的项目也遇到这个问题,哎 都没人回答

  • bigzomliao

    是啊,好像都没人解决bug问题。

    2017-09-30 15:02

y***@126.com

y***@126.com

同求啊

d***@gmail.com

d***@gmail.com

对啊,我的也是,上传还是继续了,abort不能结束啊,服务器返回200,我主要是做字节数过大停止上传的

bigzomliao

bigzomliao - hello world

同样的问题啊,在安卓机上没法暂停,还是一直上传,进度迟于文件上传完成,请问楼主现在解决没?

该问题目前已经被锁定, 无法添加新回复