Infrared ports are basically that!
They were quite popular before Bluetooth (Bluetooth file transfers are actually a different physical layer for the same protocol called OBEX) and quite ironically interoperable across phone and PDA manufacturers, as far as I remember.
It’s extremely sad that we’ve gone from being able to send a photo or business card across manufacturers to needing (incredibly clever!) contortions like this, on vastly more powerful hardware that can literally talk to satellites and run local LLMs.