File system access from Safari (IOS)

2019-02-26 01:52发布

问题:

For Windows/Linux based browsers I can use Java plugin to access filesystem. As IOS does not support Java, is there any alternative way to get it done?

回答1:

No, you can't. File cannot be uploaded or even downloaded in iOS safari. In iCab you can upload by <input type = 'file'> but you can't access filesystem. Acessing entire filesystem from browser will be a security disaster. And also java plugin can't acess entire filesystem.



回答2:

It depends what do you want to do. If you just want allow user to navigate to interesting file(s) and then upload it to server for processing you can use <input type='file'> in your HTML. If you need more functionality you have to implement native plug-in to browser or use Flash.