Just had the same issue - I didn't specify filename., but filename instead - i.e. there was no trailing period, or file extension.
filename.
filename
Specifying filename.osm resolves the issue.
filename.osm
See also #7843 for related issue, and steps to reproduce.