This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// storing video in rom using RNFS (import RNFS from 'react-native-fs';) | |
let outputVideoPath = `${RNFS.DocumentDirectoryPath}/${fileDest}.mp4`; | |
// upload func. | |
const uploadMediaToS3 = async (filePath: any, fileName: string, contentType: any, folderPath: string, Token: any ) => { | |
var s3folderpath = contentType.split('/')[0] == 'video' ? '' :`${folderPath}` | |
var bodyFormData = new FormData(); | |
var photo: any = { |