| Bidelman Eric - Using the HTML5 Filesystem API - 2011.pdf | 5.24 MB |
Книги и журналы » Компьютерная литература » Веб-дизайн и программирование
Using the HTML5 Filesystem API
Год: 2011
Автор: Eric Bidelman
Жанр: Программирование
Издательство: O’Reilly Media
ISBN: 978-1-449-30945-9
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Количество страниц: 72
Описание: 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
[spoiler="Примеры страниц"]![]()
![]()
![]()
[/spoiler]
[spoiler="Оглавление"]
Chapter 1 : Introduction
Use Cases
Security Considerations
Browser Support
Chapter 2 : Storage and Quota
Storage Types
Temporary Storage
Persistent Storage
Unlimited Storage
Quota Management API
Requesting More Storage
Checking Current Usage
Chapter 3 : Getting Started
Opening a Filesystem
Handling Errors
Chapter 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
Using HTML5 Drag and Drop
Using XMLHttpRequest
Using Copy and Paste
Removing Files
Chapter 5 : Working with Directories
The DirectoryEntry
Creating Directories
Subdirectories
Reading the Contents of a Directory
Removing Directories
Recursively Removing a Directory
Chapter 6 : Copying, Renaming, and Moving Entries
Copying a File or Directory
Moving a File or Directory
Renaming a File or Directory
Chapter 7 : Using Files
Filesystem URLs
Summary
Blob URLs
Summary
Data URLs
Summary
Chapter 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
Colophon
[/spoiler]
говорим СПАСИБО!
All Comments