A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/ko/docs/Web/API/File/File below:

File() - Web API | MDN

File()

Baseline Widely available

File() 생성자는 File 객체의 새로운 인스턴스를 생성합니다.

구문
new File(bits, name);
new File(bits, name, options);
매개변수
bits

File 객체 내에 저장할 데이터를 나타내는 Array입니다. ArrayBuffer, ArrayBufferView, Blob, 문자열을 요소로 제공할 수 있습니다. USVString 객체는 UTF-8로 인코딩해 사용합니다.

name

파일의 이름이나 경로를 나타내는 문자열입니다.

options Optional

파일 특성을 추가로 지정할 수 있는 옵션 객체입니다. 가능한 옵션은 다음과 같습니다.

예제
const file = new File(["foo"], "foo.txt", {
  type: "text/plain",
});
명세 브라우저 호환성 같이 보기

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4