简体   繁体   中英

Accessing Local File System in Internet Explorer

I have tried a lot to access local file system on internet explorer. I have got some script after googling. This can be achieved through creating a ActiveXObject on internet Explorer. But for security reason internet explorer by default disable this option. If someone chnage it it would be possible. My Question is is there any other way to access locla file system in Internet Explorer without changing the browser setting manually?

I want to use this for pre upload file size checking program. I cant use FLASH on this page to achieve this.

Would not be fun if you enter a website and it steal your things from your file system. It's a high security issue, this is why it's blocked and can't be automatically unblocked.

However, if you only need to limit the file size limit, you can the hidden input MAX_FILE_SIZE in your form to limit the maximum file size.

 <input type="hidden" name="MAX_FILE_SIZE" value="10000" />

Note that it works with PHP as described here , if you are using an other server side language you need to check how to limit the file size in the language that you are using.

If you really need to access the file system and you are in a corporate environment you can change that setting using group policy (you'll need to talk with the network administrator) to change that and make all your stations vulnerable to bad stuff in internet or create an extension that do the dangerous actions that you need only on your pages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM