Skip to main content

fdk-media

Deprecation Notice

Vue-based themes will soon be deprecated. Please switch to React-based themes, as all future updates and support will focus exclusively on React.

Media Action Component

Tag

fdk-component

Description

The action component is used to upload a media.

Props

KeyTypeDescriptionPayload
uploadfunctionThis function is used to uplaod a media upload({data:file,file_name : string,content_type : string,size : number,namespace: string} : object)
signedUploadfunctionThis function is used to uplaod media with expiry signedUpload({data:file,file_name : string,content_type : string,size : number,namespace: string} : object)
signUrlsfunctionThis function sends the urls of the media along with the expiry date signUrls({body : [SignUrlRequest](https://github.com/gofynd/fdk-client-javascript/blob/main/documentation/platform/FILESTORAGE.md#SignUrlRequest) } : object)

Example

<fdk-media>
<template slot-scope="media">
///code
</template>
</fdk-media>

Was this section helpful?