Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

FileError

已废弃
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

概述

用来表示在使用FileReader接口时发生的错误.

属性

属性名 类型 描述
code unsigned short The error code.

Error codes

常量 描述
ABORT_ERR 3 文件的操作命令被取消,可能是由于调用了FileReaderabort()方法.
ENCODING_ERR 5 文件数据不能准确的被表示为一个data URI.
NOT_FOUND_ERR 1 找不到文件.
NOT_READABLE_ERR 4 文件无法被读取.
SECURITY_ERR 2 由于安全原因,文件不能被访问.

相关链接

文档标签和贡献者

 此页面的贡献者: teoli, ziyunfei
 最后编辑者: teoli,