Open onsiteUDA opened 2 years ago
Hi @onsiteUDA,
Don't know if I am too late, and I also don't know if this might solve your problem but I encountered something similar. In my case files with whitespace in the file name would show that it was finished uploading but on S3 showed 0kb. I used react-native-document-picker
& expo-file-system
. My solution was to do the following:
const { extension } = await Upload.getFileInfo(filePath);
localPath = `${FileSystem.documentDirectory}${nameWithNoWhitespace}.${extension}`;
await FileSystem.copyAsync({
from: filePath,
to: localPath,
});
Hope this helps someone!
Updated to v6.5.1 Videos from camera roll on IOS were being uploaded to S3 instantly, the file seemed to be there in the bucket, however previewing/downloading the file uploaded would not play as if it had been corrupted. Photos work fine they show up as intended
Attempted to use Post instead using the following
It also had the same outcome.
I then proceeded to downgrade back to where I was (6.2.0) since it was working then. The first method used works for photos as intended but not for the videos; however, the second method used, correctly uploads the video to S3 as they are in the bucket and can be previewed/downloaded correclty