So I am working on my imageupload component to upload a profile image as base64 string to the Rails API backend. Everything is working fine so far but sometimes I am getting