Why is the readyState of XMLHttpRequest always kept at 1 when I upload images through Ajax in WeChat browser?

Source: Internet
Author: User
When a PHP website is accessed using an android browser, the readyState of some XMLHttpRequest images uploaded is always at 1, and the same program is on the mobile phone (and PC) chrome and Apple mobile browsers are all normal, and only Android browsers cannot be completed... when a PHP website is accessed using an android browser, the readyState of some XMLHttpRequest images uploaded is always at 1, and the same program is on the mobile phone (and PC) the Chrome browser and the Apple mobile phone browser are all normal. The upload process cannot be completed only in the android browser, and the status of readyState is 1 (open, I checked some articles on the Internet and started to find a problem in calling ajax, saying that the browser does not have the built-in XMLHttpRequest, but its status is always 0,
In another article, the readyState state value is always 1, indicating that the onreadystatechange callback function cannot have parameters or parentheses, and the modification based on the method does not take effect.

Expert advice

Reply content:

When a PHP website is accessed using an android browser, the readyState of some XMLHttpRequest images uploaded is always at 1, and the same program is on the mobile phone (and PC) the Chrome browser and the Apple mobile phone browser are all normal. The upload process cannot be completed only in the android browser, and the status of readyState is 1 (open, I checked some articles on the Internet and started to find a problem in calling ajax, saying that the browser does not have the built-in XMLHttpRequest, but its status is always 0,
In another article, the readyState state value is always 1, indicating that the onreadystatechange callback function cannot have parameters or parentheses, and the modification based on the method does not take effect.

Expert advice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.