TIL: You can include files in Insomnia requests

Abenezer Belachew

Abenezer Belachew · January 27, 2024

1 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.

Update

  • I now use Bruno. I like it better because it's local and feels lighter than both Postman and Insomnia.


🎾️