1.3.6(1) Resolved local upload issues due to form type.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user