Hello I have been working in AngualarJS and using File UPload control which works completely fine. Now I have used FileAPI
to make that working in IE8/9
.
But now I want to detect if the browser support FormData because I want to restrict only one file at a time.But as I am using FileAPI the method window.FormData === undefined
is not working as because of that I get something like this in IE8 :
function(){return{append:function(a,b,c){this.data.push({key:a,val:b,name:c})},data:[],__isShim:!0}}
How can I detect if the browser support FormData
?