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
Key | Type | Description | Payload |
---|---|---|---|
upload | function | This function is used to uplaod a media | upload({data:file,file_name : string,content_type : string,size : number,namespace: string} : object) |
signedUpload | function | This function is used to uplaod media with expiry | signedUpload({data:file,file_name : string,content_type : string,size : number,namespace: string} : object) |
signUrls | function | This 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>