-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crossdomain issue in IE 8 when uploading #307
Comments
Yes it is. I need more details to know what issue you have |
Thanks, I have tested below my file-upload code in chrome and works fine without any crossdomain issue.When testing in IE 8 using angular-file-upload-shim and flash files ,i get 404 not found error "http://166:114:163:45:8080/crossdomain.xml". I have installed ng-file-upload using bower and versions i am using are: var fileUploadUrl=http://166:114:163:45:8080/fileUpload/source; document say to place crossdomain.xml file on server if you are using CDN but i am not using CDN??then why should i need to place this file on server?? I have placed the crossdomain.xml file on my tomcat webapps/ROOT folder and i don't get any 404 error but instead i get 401 Unauthorized error. crossdomain.xml file: I could not identify whats wrong?Any help is appreciated. |
You gotta have the crossdomain.xml on your server if you are using CORS too. I am gonna update the docs. |
Thanks, crossdomain.xml file: cross-domain-policy |
can you try this one:
|
Make sure you put the crossdomain.xml on the uploading server so that |
I could access my crossdomain.xml from the browser and given read write to crossdomain.xml file on server. |
Well if it gets to the server then that is the server which is returning 401 for some reason. So the plugin is working and you need to figure out the server part. |
Note that Flash doesn't support custom headers so if your sever relies on some auth headers for authentication you need to find workaround. There are couple issues with suggested workaround if you search. |
we use custom header called sessionId as you could see in the second post with CORS.Can you suggest any workaround for flash to support custom headers???or workaround to fix these custom headers?? headers: {'sessionId': $rootScope.currentUser.sessionId}, |
I am planning to pass my customer header 'sessionId' as query parameters....can we do this and make the plugin work in IE 8?if so where do i mention my query parameter in $upload.upload ?should query parameter should be part of url or is there any option that i can use to pass query parameter?? |
You can pass it either as part of the url or as |
I have passed in the sessionId as query parameter and now i get 403 error where as it doesn't happen in chrome.I am trying to see what wrong on my server but mean while i noticed 403 error response is undefined which i have raised as a new ticket #310.I have noticed similar issue has been raised in ticket #182 and i am not sure if ticket #182 has been resolved or any workaround do you have? i got currently 2 issue at my end to go ahead with this plugin in IE 8. |
First you gotta find out if the request gets to the server at all by putting some logging or debugging on the server. |
We have placed special check on our server to handle query parameters and now it's working fine but why is 403 error response is undefined in IE 8?how can we resolve this issue?? |
Hi Danial, Tool is great but with few limitations on old browsers because of flash. Any suggestion for workarounds will be appreciated. |
I will investigate those when I get time. If you wanna debug yourself use the non minified version of files and put a break point here https://github.com/danialfarid/angular-file-upload/blob/master/dist/angular-file-upload-shim.js#L108 You can also try using version 1.3.x of the plugin which is using an older version of FileAPI and see if that makes any different in returning response error code. |
Yep that's a flash limitation no response body in case of error just the error code. |
Hi,
angular-file-upload in IE 8 browser is throwing up crossdomain.xml issue(404-Not found) and not sure how to resolve this.
Is Angular-file-upload compatible with IE 8??
The text was updated successfully, but these errors were encountered: