共用方式為


FormDataValue type

每個表單資料項可以是字串、Blob 或檔案。 如果您想要傳遞具有名稱但無法存取 File 類別的檔案,您可以使用 createFile 協助程式來建立檔案。

type FormDataValue = string | Blob | File