When Android uploads a picture for the second time, it returns a 614 error, file exists, and the same key is passed. Why can't it be overwritten?
为情所困
为情所困 2017-06-13 09:23:40
0
1
756

uploadManager = new UploadManager(config);

String tokens = token <已经是服务器获取的token > String data = imageTempPath; String key = "image_100.png"; uploadManager.put(data, key, tokens, new UpCompletionHandler() { @Override public void complete(String key, ResponseInfo info, JSONObject res) { if (info.isOK()) { sendUpWeStoreLoadBg(key); } else { Toast.makeText(MicroStoreMainActivity.this, "上传失败", Toast.LENGTH_SHORT).show(); } } }, null); }
为情所困
为情所困

reply all (1)
我想大声告诉你

First, the name of your key is not good. It is recommended not to use this form.
Second, the specific reason should be on the server side. It may store the Hash of the image. If the same image is detected, you will be rejected. Uploaded again to save traffic

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!