Edit in GitHubLog an issue

FormData

new FormData()

The constructor initializes a FormData object.

formData.append(key, value, [fileName])

Appends a key value pair into FormData. If the value is either ArrayBuffer and TypedArray, its buffer as well as the object are copied. However, if the value is a File object value, the File object is cloned but its content is not cloned. Consequently, the File object and the cloned one refer to the same content.

ParamTypeDefaultDescription
key
string
a key string for the pair
value
string | ArrayBuffer | TypedArray | File
a value for the pair
[fileName]
string
null
the optional file name to use for a File object value. If not present, the file name would be taken from the name property of the File object.

formData.entries()

Returns: iterator for all key-value pairs in FormData.

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.