IE8, 9 cross-domain upload file (image)

Source: Internet
Author: User

Foreword: New project, need to upload picture cross domain to specialized picture server above, and also support IE8/9 cross domain upload.

Resolution: In order to solve this program stepped on a lot of pits, hereby recorded. Previously collected a number of uploaded component files (Pictures) upload components, each have pros and cons.

1: Because Google does not support Flash in the future version, so do not want to use the SWF supported components upload

2: Tried the Ajaxfileupload component, which was dropped directly across the domain in Google.

3: Try Baidu's upload component, Web Uploader This is very good, support cross-domain, but IE8/9 cross-domain support is not good, had to give up (also may be I did not configure it well)

4: The emphasis came, tried the JQ component jquery-file-upload, known as ie8+, supported across domains. However, ie10+, Chrome, FF cross-domain line, IE8, 9 under the cross-domain is not always supported, after uploading the picture server has returned the image of the relevant parameters, IE8/9 Ajax request has responded, but is not the value, cross-domain, simulation form form submission IE8/9 can't cross the domain !!!

5: Finally, you have to re-use the SWF component Uploadify, the most recent version 3.2.1, but after the cross-domain, you must add the Crossdomain.xml file on the remote file server, which is placed under the root directory of the server. If you have access to this XML file in the browser, the XML configuration is successful. This Adobe protocol, because Uploadify is uploaded using Adobe's swf, this protocol can solve cross-domain security problems, so it can be uploaded through the uploadify plug-in, specifically, according to the actual situation to configure the cross-domain XML file.

  

6: Finally, with uploadify Flash implementation of IE8/9 cross-domain upload, if there are other better ways, please share.

IE8, 9 cross-domain upload file (image)

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.