Actually when using a regular file input that accepts type image/jpeg the file is converted by iOS automatically to jpeg. I implemented this in https://heicdrop.kasperkamperman.com. A free web app to directly send jpegs with AirDrop to your Mac.