Detecting content type of uploaded files

This page summarizes the projects mentioned and recommended in the original post on /r/golang

InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. filetype

    Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature

    https://github.com/h2non/filetype if you want cross-platform, but magic is the best (https://github.com/rakyll/magicmime)

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. magicmime

    Go bindings for libmagic to detect MIME types

    https://github.com/h2non/filetype if you want cross-platform, but magic is the best (https://github.com/rakyll/magicmime)

  4. mimetype

    A fast Golang library for media type and file extension detection, based on magic numbers

    Good suggestions. What do you think of this. https://github.com/gabriel-vasile/mimetype

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Show HN: Mimetype, a Golang library for media types

    1 project | news.ycombinator.com | 29 Apr 2023
  • Reading/passing file as byte or string...

    1 project | /r/golang | 21 Nov 2022
  • Decoding JSON sum types in Go without panicking

    5 projects | news.ycombinator.com | 15 Mar 2025
  • ecstop: My CLI Tool to Stop ECS Resources Easily

    4 projects | dev.to | 5 Jan 2025
  • Why Docker Compose Falls Short as Self-Hosting Scales

    6 projects | news.ycombinator.com | 12 Nov 2024