1.3.6(1) Resolved local upload issues due to form type.

This commit is contained in:
Patrick Fic
2022-05-17 16:03:16 -07:00
parent 2ad694ceda
commit a183a0fef6
9 changed files with 151 additions and 104 deletions

View File

@@ -136,6 +136,10 @@ export function UploadProgress({
//Sequentially await the proms.
// for (const file of data) {
// await CreateUploadProm(file);
// }
for (var i = 0; i < data.length + 4; i = i + 4) {
let proms = [];
if (data[i]) {
@@ -157,8 +161,7 @@ export function UploadProgress({
if (deleteAfterUpload) {
try {
const a = await MediaLibrary.getAssetsAsync();
console.log("assets", a);
console.log("filestodelete", filesToDelete);
const res = await Promise.all(
filesToDelete.map((f) => {
return MediaLibrary.removeAssetsFromAlbumAsync(f, f.albumId);