Cross-Domain upload of images by WebUploader in IE9,

Source: Internet
Author: User

Cross-Domain upload of images by WebUploader in IE9,

As the front-end, this time it step on the background xml configuration.

In IE9, images are uploaded through the flash plug-in and the http: // 192.168.0.8: 8888/crossdomain. xml request is always sent. The status code is 404 because crossdomain. xml is not configured on the image uploading server.

Configuration of crossdomain. xml in springMVC:

<? Xml version = "1.0" encoding = "UTF-8"?> <Cross-domain-policy> <allow-access-from domain = "*"/> </cross-domain-policy>

Crossdomain. xml is put under webapps/, webapps/ROOT/, webapps/project name/, webapps/project name/WEB-INF/respectively.

You can access crossdomain. xml from the following paths:

Http: // localhost: 8080/crossdomain. xml,

Http: // localhost: 8080/project name/crossdomain. xml

After the configuration is complete, you can send an Image Upload request.

 

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.