Skip to main content

application/octet-stream resolves from the file extension

By Steven Van ·

Notion's File Upload API now resolves the real file type from the filename when a client sends a generic application/octet-stream label.

Notion's Notion File Upload API no longer treats a generic application/octet-stream content type as final. When an HTTP client can't infer a MIME type from a file and labels it application/octet-stream, the Create a file upload and Send a file upload endpoints now resolve the real type from the filename extension, or from the content type set at creation. Files with unsupported extensions are still rejected.

Notion
Notion
All-in-one workspace for notes, docs, projects, and wikis — with AI built in for writing, summarizing, and organizing.
View Notion →

Read the original announcement →

Read application/octet-stream resolves from the file extension on Creators Toolbox