TIL: You can include files in Insomnia requests

Abenezer Belachew

Abenezer Belachew · January 27, 2024

2 min read

Today I learned that you can put files in a request made from Insomnia.

Insomnia is a REST (and GraphQL, WebSockets, SSE, gRPC) client that I've started using to test my (and others) APIs. I usually opt for curl but I like the whole collection and environment thing that Insomnia has going on, so it’s becoming my go-to more often now. I had a phase where I used Postman, but it’s gotten kind of bloated lately. Plus, Insomnia being open source is pretty cool.

Anyway, I was working on uploading a file using the multipart/form-data content type. Initially, I was unaware that Insomnia supported file uploads, and I was just about to revert to curl for it until I noticed the dropdown next to the value input.

insomnia allowing you to upload files

Snippet of Insomnia allowing you to upload files

  • Postman can do this too.


  • I now use Bruno for HTTP related tests. I like it better because it's local and feels lighter than both Postman and Insomnia. One downside of Bruno is that it doesn't currently support websockets.