Skip to content

Commit

Permalink
Update destination path for files (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
saad-abid-crowdbotics authored Oct 31, 2023
1 parent 531a04d commit e1b383b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/react-native-chat/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function getByValue(arr, value) {
}

export const getUrl = async (uri, fileName) => {
const destPath = `${RNFS.TemporaryDirectoryPath}/${fileName}`;
const destPath = `${RNFS.DocumentDirectoryPath}/${fileName}`;
await RNFS.copyFile(uri, destPath);
await RNFS.stat(destPath);
return destPath;
Expand Down

0 comments on commit e1b383b

Please sign in to comment.