Reputation: 3304
I want to detect the file size before uploading it to the web. I got a java script from here which is working well in Internet Explorer 10 and other browsers.
But I have most of the customers who are working with Internet Explorer 9 and Internet Explorer 8. For that also I got a code form here.
But the problem with that is It requires “Initialize and script ActiveX controls not marked as safe for scripting.” to be enabled and also pops up to click on ok when the function is called. This method is not suitable for my requirement. So is there any other methods to get file size in Explorer 9 and Internet Explorer 8 without any extra settings from user end ?
Please help me.
Upvotes: 0
Views: 974
Reputation: 1074138
So is there any other methods to get file size in Explorer 9 and Internet Explorer 8 without any extra settings from user end ?
No. That's why the File API (what you're presumably using on IE10+) was created, because prior to that the only way to do it was ActiveX controls, signed Java applets, or Flash. So to do it on browsers that don't support the File API, you need to use...ActiveX controls, signed Java applets, or Flash, all of which will carry that kind of warning if they're going to be allowed to interact with the user's file system.
Upvotes: 1