Using the HTML5 Filesystem API. A True Filesystem for the Browser - Helion
ISBN: 978-14-493-1548-1
stron: 76, Format: ebook
Data wydania: 2011-07-22
Księgarnia: Helion
Cena książki: 67,92 zł (poprzednio: 84,90 zł)
Oszczędzasz: 20% (-16,98 zł)
Several client-side storage options are available to web applications, but one area that's been lacking until now is file I/O—the ability to organize binary data into a true hierarchy of folders. That has changed with the advent of HTML5. With this book, you'll learn how to provide your applications with a file system that enables them to create, read, and write files and folders in a sandboxed section of the user's local filesystem.
Author Eric Bidelman, a Senior Developer Programs Engineer on the Google Chrome team, provides several techniques and complete code examples for working with the HTML5 Filesystem API.
- Learn common operations for working with files and directories
- Become familiar with HTML5's storage use cases and security considerations
- Understand the storage options available, including temporary, persistent, and unlimited
- Write text or append data to an existing user file
- Import files into your application by accessing a user's hard drive
- Get techniques for using a file with filesystem, blob, or data URLs
- Use the synchronous version of the HTML5 Filesystem API within a Web Worker context
Osoby które kupowały "Using the HTML5 Filesystem API. A True Filesystem for the Browser", wybierały także:
- Django REST framework. Kurs video. Praktyczne wprowadzenie do projektowania interfejsów REST API 98,98 zł, (39,59 zł -60%)
- ASP .NET Core. Kurs video. Rozwijanie dodatkowych funkcjonalności Web API 89,00 zł, (35,60 zł -60%)
- Platforma Xamarin. Kurs video. Poziom drugi. Zaawansowane techniki tworzenia aplikacji cross-platform 99,00 zł, (39,60 zł -60%)
- Cloud Native Microservices Cookbook 88,41 zł, (38,90 zł -56%)
- React Development using TypeScript 88,41 zł, (38,90 zł -56%)
Spis treści
Using the HTML5 Filesystem API. A True Filesystem for the Browser eBook -- spis treści
- Using the HTML5 Filesystem API
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Preface
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- 1. Introduction
- Use Cases
- Security Considerations
- Browser Support
- A Cautionary Tale
- 2. Storage and Quota
- Storage Types
- Temporary Storage
- Persistent Storage
- Unlimited Storage
- Quota Management API
- Requesting More Storage
- Checking Current Usage
- Storage Types
- 3. Getting Started
- Opening a Filesystem
- Handling Errors
- 4. Working with Files
- The FileEntry
- Creating a File
- Reading a File by Name
- Writing to a File
- Appending Data to a File
- Importing Files
- Using <input type=file>
- Using HTML5 Drag and Drop
- Using XMLHttpRequest
- Using Copy and Paste
- Removing Files
- 5. Working with Directories
- The DirectoryEntry
- Creating Directories
- Subdirectories
- Reading the Contents of a Directory
- Removing Directories
- Recursively Removing a Directory
- 6. Copying, Renaming, and Moving Entries
- Copying a File or Directory
- Moving a File or Directory
- Renaming a File or Directory
- 7. Using Files
- Filesystem URLs
- Summary
- Blob URLs
- Summary
- Data URLs
- Summary
- Filesystem URLs
- 8. The Synchronous API
- Introduction
- Opening a Filesystem
- Working with Files and Directories
- Handling Errors
- Examples
- Fetching All Entries in the Filesystem
- Downloading Files Using XHR2
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly