Open faizkhan7896 opened 1 year ago
I am trying to uploading a video in IOS through RNFS then it's throwing this error
const urlComponents = video?.uri.split('/'); const fileNameAndExtension = urlComponents[urlComponents.length - 1]; const destPath = ${RNFS.TemporaryDirectoryPath}/${fileNameAndExtension}; await RNFS.copyFile(video?.uri, destPath);
const urlComponents = video?.uri.split('/');
const fileNameAndExtension = urlComponents[urlComponents.length - 1];
const destPath = ${RNFS.TemporaryDirectoryPath}/${fileNameAndExtension};
await RNFS.copyFile(video?.uri, destPath);
console.log('file://' + destPath); body.append('video', { name: 'video.mp4', uri: 'file://' + destPath, type: video.type, });
I am trying to uploading a video in IOS through RNFS then it's throwing this error
const urlComponents = video?.uri.split('/');
const fileNameAndExtension = urlComponents[urlComponents.length - 1];
const destPath = ${RNFS.TemporaryDirectoryPath}/${fileNameAndExtension};
await RNFS.copyFile(video?.uri, destPath);