upload component not work when img url has some params, example: show from aliyun oss #10102
Comments
Hello @didmehh. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro. Issues labeled by |
i had provide another example for this issue. |
Did you mean the image url |
yep |
I update antd to 3.4.1 ,but this problem is still exist .I check the node_modules of antd, the source code is not update. |
hi guys, my antd version still at 3.3.1. function base64Url(url, callback) {
let xhr = new XMLHttpRequest();
xhr.onload = function() {
let reader = new FileReader();
reader.onloadend = function() {
callback(reader.result);
}
reader.readAsDataURL(xhr.response);
};
xhr.open('GET', url);
xhr.responseType = 'blob';
xhr.send();
}
const url = 'http://img15.3lian.com/2015/f1/38/d/41.jpg'
base64Url(url, (result) => {
console.log("result base64 url was", result)
}) |
Version
3.3.1
Environment
chrome 65.0
Reproduction link
first

second codebox reproduce
Steps to reproduce
i got example from here, then add some params to
url
. not work.What is expected?
show image
What is actually happening?
not show
The text was updated successfully, but these errors were encountered: