mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
html5 application to support file urls by appending '?app='
This commit is contained in:
parent
716e044ad5
commit
2f3eee32c2
13 changed files with 69 additions and 86 deletions
|
@ -62,8 +62,9 @@ Click to install the following html5 apps:<br>
|
|||
<ul>
|
||||
<li>All html5 applications locating in a subfolder whose name begins with "app" (such as "appPDF") are allowed to read local files. Use url "https://local/sdcard/..." for a local file.</li>
|
||||
<li><span style="color:red">All files under the subfolder "app" can be automatically choosed as file objects by any web page</span>.</li>
|
||||
<li><span style="color:red">Local files (including binary files) can be processed by appending "?app=[html5 app url] to the file urls.</span> Ex. "file:///..../xx.md?app=https://...../app.html" loads "app.html" first, then "app.html" processes the local file.</li>
|
||||
</ul>
|
||||
<p>With the first approach, the html5 application is installed locally and can read any file allowed by the OS; while in the second approach, the html5 application can be either local or remote, and only files under the subfolder "app" can be accessed.</p>
|
||||
<p>With the first approach, the html5 application is installed locally and can read any file allowed by the OS; while in the second approach, the html5 application can be either local or remote, and only files under the subfolder "app" can be accessed; The third approach allows easy access of other external resources (ex. local media).</p>
|
||||
<h4 id="open-local-files-with-html5-apps">Open local files with html5 apps</h4>
|
||||
<p>Click to configure <a href="../filecap/index.html">default.filecap</a> to open local files, and to open remote files with the option "custom file handling":<br>
|
||||
<a target="_self" href="i:0gdefault.filecap:https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/txt/filecap.cfg">use pdf.js,djvu.js,epub.js, huge markdown viewer for local files</a></p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue