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: 72,24 zł (poprzednio: 84,99 zł)
Oszczędzasz: 15% (-12,75 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:
- REST API i Symfony. Kurs video. Nowoczesne aplikacje w PHP 148,98 zł, (59,59 zł -60%)
- Platforma Xamarin. Kurs video. Poziom drugi. Zaawansowane techniki tworzenia aplikacji cross-platform 99,00 zł, (39,60 zł -60%)
- Angular 11. Kurs video. Poznaj moc tworzenia aplikacji typu SPA 129,00 zł, (58,05 zł -55%)
- Django REST framework. Kurs video. Praktyczne wprowadzenie do projektowania interfejsów REST API 99,00 zł, (44,55 zł -55%)
- OpenGL. Kurs video. Wprowadzenie do programowania grafiki komputerowej 99,00 zł, (44,55 zł -55%)
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