

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Upload from local drive to local filesystem in HTML with Filesystem API
<p style="">To upload from local drive to the local file system, we can use −</p><ul class="list"><li>Webkitdirectory attribute on <input type=”file”> − This allows the user to select a directory by the appropriate dialog box.</li><li>Filesystem API is a sandboxed filesystem, which allows us to store files on client’s machine.</li><li>File API allows us to read files. Files are accessible by <input type=”file”> element</li></ul><p>All of the above is working fine in Google Chrome.</p><p style="">WebKit directory is a much better option among these. Use the following for directory −</p><pre class="result notranslate">webkitRequestFileSystem( window.TEMPORARY, 5 * 1024 * 1024, function(_fs) { fs = _fs; }, Err</pre><p style="">Above, err and fs are −</p><pre class="result notranslate">var fs, err = function(err) { throw err; };</pre>
- Related Questions & Answers
- Remove Sub-Folders from the Filesystem in C++
- How to get local date in android using local date API class?
- Object-oriented filesystem paths in Python (pathlib)
- How to create a filesystem node using Python?
- Play local (hard-drive) video file with HTML5 video tag?
- HTML DOM Local Storage clear() method
- How to get local time in android using localtime API class?
- Retrieve element from local storage in JavaScript?
- How to link jQuery from my local machine?
- Copy Files from Docker Container to Local Machine
- Local Area Networks
- The Local Loop
- How to get local time and date in android using LocalDateTime API class?
- Local Class in C++
- Local variables in Java
Advertisements