陌路_js
陌路_js
  • 发布:2015-12-07 17:52
  • 更新:2015-12-07 17:52
  • 阅读:1882

上传QQ截图保存的图片失败,求大神指点

分类:HTML5+
        if (release_post()) {  
            var wt = plus.nativeUI.showWaiting();  
            var task = plus.uploader.createUpload(savepost_url, {  
                    method: "POST"  
                },  
                function(t, status) {  
                    if (status == 200) {  
                        if (JSON.parse(t.responseText)["status"] == "0") {  
                            if (plus.storage.getItem("isbuy") == "0"){  
                                detailPage=plus.webview.getWebviewById('buy_sub');  
                            }else{  
                                detailPage=plus.webview.getWebviewById('sell_sub');  
                            }                             
                            mui.fire(detailPage,'newpost',{  
                                imgs : select_img_path,  
                                content : content.value,  
                                post_time : Date.parse(new Date())/1000,  
                                mobile : plus.storage.getItem("mobile")  
                            });  
                            mui.back();  
                        } else {  
                            mui.toast('发布失败');  
                        }  
                        wt.close();  
                    } else {  
                        //                      alert("上传失败:" + status);  
                        wt.close();  
                    }  
                }  
            );  

            task.addData("uid", uid_value);  
            task.addData("content", content.value);  
            task.addData("tabletype", plus.storage.getItem("isbuy"));  
            task.addFile(select_img_path, {});//图片路径(select_img_path)此处是有的  
            task.start();  
        }

图片路径为 : file:///storage/emulated/0/Tencent/QQfile_recv/PX4)_M0IO895}VC3Q}D@NI.png就可以成功,路径为:file:///storage/emulated/0/Tencent/QQfile_recv/A}@Y3Q9DSIJN8]PM[%IP%O.png 就失败了,求大神

2015-12-07 17:52 负责人:无 分享
已邀请:

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