Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

browser load local file without upload

Tags:

javascript

Is it possible to edit a local file without uploading to the browser?

Let's say the client has an HTML file, I want him to be able to use my site's javascript to edit the file without uploading it. Would this be possible?

Thanks.

like image 282
Mark Avatar asked Jan 01 '11 13:01

Mark


People also ask

How to load local file in Chrome without using Ajax?

You can Load the Local file in Chrome Browser locally without Using AJAX. you can use normally use jQuery function like $.getJSON () for loading the file in chrome browser. But if you use this jQuery functionality then chrome Web Security will Block your function to access file form files packages.

How to open local files on your browser in Windows?

How to Open Local Files on Your Browser in Windows 1 Preamble – Security Issues. There are a few issues that need to be addressed before you access local files in your browser. ... 2 Google Chrome. Using Google Chrome to access local files is as easy as pressing Ctrl + O at the same time. ... 3 Firefox. ... 4 Edge. ... 5 Wrapping Up. ...

How do I access local files in Google Chrome?

Using Google Chrome to access local files is as easy as pressing Ctrl + O at the same time. This interface will open, allowing you to navigate to whichever file or folder is needed.

How to share files without uploading?

Traditional file sharing over the internet involves uploading the target file to a file host or a cloud-based server and then downloading it. However, these 3 methods involve creating an instant share link for the file that you want to share without uploading. This offers much faster speeds and less overhead.


1 Answers

Yes, it is possible, but only in HTML5 (and only as browsers add support for it...not all do yet), you can find the HTML5 File API here.

Note that the user has to give permission to access the file, from Section 5.9:

Once a user has given permission, user agents should provide the ability to read and parse data directly from a local file programmatically.

like image 110
Nick Craver Avatar answered Sep 21 '22 17:09

Nick Craver