On-the-Fly Content Type Detection in Go
Go standard library has a built-in function that inspects the content of the file and sniffs its type. Let's build a simple solution that does content-type validation during file uploads without buffering the entire file.