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.