Which file your phone actually saves
The Voice Memos app on iPhone saves every recording as an M4A file, and that is the format you get when you tap Save to Files or AirDrop a memo to a Mac. Android is less uniform. Samsung Voice Recorder writes M4A, the Google Recorder app exports M4A as well, and older or lighter recorder apps still produce 3GP or AMR files from the days when storage was scarce. All of these go into the upload box above without any conversion step.
The extension is not something you need to check before uploading. If the recorder on your phone saved it, the chances are high it is on the list of accepted formats, and if a file is refused you will see a message straight away rather than after a long upload.