uploading images to firebase via blob fails

When you say “I can’t get it to upload it to firebase” what exactly does that mean? Does the app crash, do you get an XHR error, etc.?

I have also tried this

await new Promise((resolve, reject) => {
    const xhr = new XMLHttpRequest();
    xhr.onload = function() {
      resolve(xhr.response);
    };
    xhr.onerror = function(e) {
      console.log(e);
      reject(new TypeError('Network request failed'));
    };
    xhr.responseType = 'blob';
    xhr.open('GET', uri, true);
    xhr.send(null);
  });

as well as

let picture = await fetch(imagePath);
picture = await picture.blob();

It generally works the first time but then on subsequent calls I get this

Unable to resolve data for blob: 6a275923-2372-4525-b46d-a4f8cf13886b

Is that similar to what you’re experiencing? Btw. I’m on iOS.

@a_creative_username I made another post that might be related to your issue Issues uploading image to S3 via Amplify (iOS)