Interface FormData

    interface FormData {
        "[iterator]"(): FormDataIterator<[string, FormDataEntryValue]>;
        append(name: string, value: string | Blob): void;
        append(name: string, value: string): void;
        append(name: string, blobValue: Blob, filename?: string): void;
        delete(name: string): void;
        entries(): FormDataIterator<[string, FormDataEntryValue]>;
        forEach(
            callbackfn: (
                value: FormDataEntryValue,
                key: string,
                parent: FormData,
            ) => void,
            thisArg?: any,
        ): void;
        get(name: string): FormDataEntryValue;
        getAll(name: string): FormDataEntryValue[];
        has(name: string): boolean;
        keys(): FormDataIterator<string>;
        set(name: string, value: string | Blob): void;
        set(name: string, value: string): void;
        set(name: string, blobValue: Blob, filename?: string): void;
        values(): FormDataIterator<FormDataEntryValue>;
    }

    Methods

    • Parameters

      • name: string
      • value: string | Blob

      Returns void

    • Parameters

      • name: string
      • value: string

      Returns void

    • Parameters

      • name: string
      • blobValue: Blob
      • Optionalfilename: string

      Returns void

    • Parameters

      • name: string

      Returns void

    • Parameters

      Returns void

    • Parameters

      • name: string

      Returns boolean

    • Parameters

      • name: string
      • value: string | Blob

      Returns void

    • Parameters

      • name: string
      • value: string

      Returns void

    • Parameters

      • name: string
      • blobValue: Blob
      • Optionalfilename: string

      Returns void