Images api 415 error in a react-native app real device

I am making a call to the images api but fails with a 415 code. My stack is expo react-native, and i am trying to upload via the images api. This code works fine on emulator but returns a 415 err on a real device

What type of device you try to upload from? My speculations are that might be HEIC-encoded images we don’t support.

I’m uploading from Samsung s21 phone but the idea is to be able to upload from any device

Do you know what image format you are trying to upload from the phone? is this one from the acceptable list? Upload images · Cloudflare Image Optimization docs

The images i am trying to upload are jpg this same format works on the emulator but i receive the 415 error on a real device

This topic was automatically closed after 15 days. New replies are no longer allowed.