I'm implementing a simple file type auto-detector for a tool. Doesn't need to be...

@dgelessus@mastodon.social

I'm implementing a simple file type auto-detector for a tool. Doesn't need to be super reliable - it's just a convenience feature to auto-pre-fill a file type dropdown, so even if it only works 80 % of the time, it's a usability improvement. Still, I thought I'd check how proper systems do this.