Preparing search index...
The search index is not available
@cloudflare/workers-types
@cloudflare/workers-types
File
Class File
Hierarchy (
view full
)
Blob
File
Index
Constructors
constructor
Properties
last
Modified
name
size
type
Methods
array
Buffer
slice
stream
text
Constructors
constructor
new
File
(
bits
,
name
,
options
?
)
:
File
Parameters
bits
:
(
string
|
ArrayBuffer
|
ArrayBufferView
|
Blob
)
[]
name
:
string
Optional
options
:
FileOptions
Returns
File
Properties
Readonly
last
Modified
last
Modified
:
number
MDN Reference
Readonly
name
name
:
string
MDN Reference
Readonly
size
size
:
number
MDN Reference
Readonly
type
type
:
string
MDN Reference
Methods
array
Buffer
array
Buffer
(
)
:
Promise
<
ArrayBuffer
>
MDN Reference
Returns
Promise
<
ArrayBuffer
>
slice
slice
(
start
?
,
end
?
,
type
?
)
:
Blob
MDN Reference
Parameters
Optional
start
:
number
Optional
end
:
number
Optional
type
:
string
Returns
Blob
stream
stream
(
)
:
ReadableStream
<
any
>
MDN Reference
Returns
ReadableStream
<
any
>
text
text
(
)
:
Promise
<
string
>
MDN Reference
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
last
Modified
name
size
type
array
Buffer
slice
stream
text
@cloudflare/workers-types
Loading...
MDN Reference