UNPKG

ibm-cloud-sdk-core

Version:

Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.

56 lines (27 loc) 959 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [buildRequestFileObject](./ibm-cloud-sdk-core.buildrequestfileobject.md) ## buildRequestFileObject() function This function builds a `form-data` object for each file parameter. **Signature:** ```typescript export declare function buildRequestFileObject(fileParam: FileWithMetadata): Promise<FileObject>; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> fileParam </td><td> [FileWithMetadata](./ibm-cloud-sdk-core.filewithmetadata.md) </td><td> The FileWithMetadata instance that contains the file information </td></tr> </tbody></table> **Returns:** Promise&lt;[FileObject](./ibm-cloud-sdk-core.fileobject.md)<!-- -->&gt; the FileObject instance