温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/S3File/formData
点击访问原文链接

S3File.formData method | Bun module | Bun

S3File.formData method | Bun module | BunBuildDocsReferenceGuidesBlogDiscord/Bun/S3File/formDataMformData

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Bun/S3File/formDataMformData

method

S3File.formDataformData(): PromiseFormData>;

Read the data from the blob as a FormData object.

This first decodes the data from UTF-8, then parses it as a multipart/form-data body or a application/x-www-form-urlencoded body.

The type property of the blob is used to determine the format of the body.

This is a non-standard addition to the Blob API, to make it conform more closely to the BodyMixin API.

Referenced typesclass FormData

Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".

MDN Reference

[Symbol.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]>;

Returns an array of key, value pairs for every entry in the list.

entries(): IterableIterator[string, string]>;forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void,thisArg?: any): void;get(name: string): null | FormDataEntryValue;getAll(name: string): FormDataEntryValue[];has(name: string): boolean;keys(): FormDataIteratorstring>;

Returns a list of keys in the list.

keys(): IterableIteratorstring>;set(name: string,value: string | Blob): void;set(name: string,value: string): void;set(name: string,blobValue: Blob,filename?: string): void;values(): FormDataIteratorFormDataEntryValue>;

Returns a list of values in the list.

values(): IterableIteratorstring>;

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

S3File.formData method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for method bun.S3File.formData | Bun