你可以使用HTML5本地存储来存储文件?如果没有,如何? [英] Can you use HTML5 local storage to store a file? If not, how?

查看:119
本文介绍了你可以使用HTML5本地存储来存储文件?如果没有,如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过浏览器机制来缓存/管理用户计算机上的许多大文件(视频)(插件是可接受的解决方案)。从我所知道的,本地存储是关于数据库类型的数据,而不是文件。FileSystem API [1,2]将是你最好的选择,有一点是非常流血的。然而它已经被W3C放弃了。从他们自己的文档:


这个文档的工作已经停止,不应该被引用或者作为实现的基础。 p>




  1. http://dev.w3.org/2009/dap/file-system/pub/FileSystem/

  2. http://www.html5rocks.com/tutorials/file/filesystem/


How would one go about caching / managing many large files (videos) on a user's computer via browser mechanisms (plugins are acceptable solutions). From what I can tell, local storage is about database type data, not files.

解决方案

The FileSystem API[1,2] was going to be your best bet going forward, at one point it was very much bleeding edge. However it has been been abandoned by w3c. From their own documentation:

Work on this document has been discontinued and it should not be referenced or used as a basis for implementation.

  1. http://dev.w3.org/2009/dap/file-system/pub/FileSystem/
  2. http://www.html5rocks.com/tutorials/file/filesystem/

这篇关于你可以使用HTML5本地存储来存储文件?如果没有,如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆