WebIDLpedia

File interface

Definition

File API defines File



[Exposed=(Window,Worker), Serializable]
interface File : Blob {
  constructor(sequence<BlobPart> fileBits,
              USVString fileName,
              optional FilePropertyBag options = {});
  readonly attribute DOMString name;
  readonly attribute long long lastModified;
};

This interface is extended in the following specifications:

Consolidated IDL (across mixin and partials)


[Exposed=(Window,Worker), Serializable]
interface File : Blob {
  constructor(sequence<BlobPart> fileBits,
              USVString fileName,
              optional FilePropertyBag options = {});
  readonly attribute DOMString name;
  readonly attribute long long lastModified;
    readonly attribute USVString webkitRelativePath;
};

Methods and attributes that return objects implementing File

Referring IDL interfaces/dictionaries

Referring specifications