Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox Mobile SecurityError for FileReader API

So my question is somewhat related to Firefox SecurityError: "The operation is insecure.". Uploading image works on all browsers expect Firefox Android App, It throws SecurityError. I am not able to understand how this is CORS issue. The image is just read from the FileReader and displayed in the UI.

reader.onload = (e) => {
    this.displayImage(e.target.result, file.name);
    this.toggleUploadInput();
  };
  reader.onerror = (e) => {
    alert('error:'+ e.target.error.name);
  };

Any help will be appreciated. Thanks.

like image 970
Rahul Dhawani Avatar asked Apr 29 '26 04:04

Rahul Dhawani


1 Answers

Solved, the Firefox didn't have the total access to the camera, mic .. You must make sure that it has access to all your device's resources that it is asking for.

like image 154
Trabelsi Mohamed Hedi Avatar answered Apr 30 '26 19:04

Trabelsi Mohamed Hedi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!