How to get file size without using ActiveX
JavaScript
2
Posts
2
Posters
3
Views
1
Watching
-
Hi, please put how to get file size using javascript without using any third party controls?
-
Hi, please put how to get file size using javascript without using any third party controls?
JavaScript in a web page is sandboxed to prevent it from being able to do such things as access the file system. Therefore, the only way to get around this is to use a third party control, or if your app will only run on IE on Windows, you can use the
ActiveXObject
to create an instance of theScripting.FileSystemObject
and access the file size with that.Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility