Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Work around for Html5 Local File Access

We are currently looking at porting a enterprise silverlight application over to html5. The major roadblock that we have hit is the ability to open files from the user's local disk. Currently they have a document library which just links to files on their computer that they can open from within the app and view or print out. All that I read is that you can only access the local sandbox of the web app with the html5 file api's. We want to load these files from code.

Does anyone know of any workarounds to this?

Thanks

like image 930
Matt Avatar asked Nov 16 '25 19:11

Matt


2 Answers

There is no way for html5 to access local file without user selection. But FSO: FileSystemObject works for IE and MAYBE could be regarded as a work around. But still there are some requirements to meet.

like image 103
John Hua Avatar answered Nov 19 '25 10:11

John Hua


It is possible to use chrome's filesystem API to access files on a users local filesytem. So you'd have to be willing to make this a chrome only application.

like image 40
markain Avatar answered Nov 19 '25 10:11

markain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!