javascript - Cross server File Upload in IE 8/9 for ASP.Net WebAPI -


i have read tons file upload ie 8/9. however, have not been able create solution case. pretty new programming web stem lack of knowledge protocols , such.

on server side have asp.net webapi: api meant handle file uploads, works fine when using fiddler , direct calls server.

on client use html (not html 5), , knockoutjs.

because of architecture in place, there 2 servers: 1 serving clients , other misc. activities (lets call a), , hosts file upload api , manages large volumes of data (server b).

i have page on client (coming a) uploads files 2nd server (server b).

i came across jquery.form.js , read supports ie uploads well. tried implementing code tutorial site. unfortunately not work , browser shows following error:

options http://b/files/post/3/g/ 404 (not found) jquery.js:8724 send jquery.js:8724               jquery.extend.ajax jquery.js:8154 fileuploadxhr                                    jquery.form.js:321 $.fn.ajaxsubmit                                  jquery.form.js:239 (anonymous function)                              knockout.bindings.js:17 jquery.event.dispatch                            jquery.js:5116 elemdata.handle                                  jquery.js:4787 options http://b/files/post/3/g/ origin http://a not allowed access-control-allow-origin.                         jquery.js:8724 send jquery.js:8724                              jquery.extend.ajax jquery.js:8154 fileuploadxhr                                    jquery.form.js:321 $.fn.ajaxsubmit                                  jquery.form.js:239 (anonymous function)                           knockout.bindings.js:17 jquery.event.dispatch                            jquery.js:5116 elemdata.handle                                  jquery.js:4787 xmlhttprequest cannot load http://b/files/post/3/g/. origin http://a not allowed access-control-allow-origin. test.html:1 

on servers have implemented this article, talks cors webapi's.

can help? looking out code snippets in html , javascript/jquery trick both ie 8/9 , other modern browsers.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -