---
title: "Discussion on \"Defining File Uploads: multipart/form-data vs Base64 Bodies\" | Hashnode"
description: "Discussion on \"Defining File Uploads: multipart/form-data vs Base64 Bodies\". Use multipart/form-data for ordinary HTTP uploads and reserve Base64 format byte for JSON-only channels, declare size limits, and test the binary round trip."
url: "https://hashnode.com/posts/openapi-file-uploads-multipart-vs-base64/6ae80430732a052a437c5b49"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Defining File Uploads: multipart/form-data vs Base64 Bodies](https://blogs.powerduck.com/openapi-file-uploads-multipart-vs-base64?utm_source=hashnode&utm_medium=feed)

Use multipart/form-data for ordinary HTTP uploads and reserve Base64 format byte for JSON-only channels, declare size limits, and test the binary round trip.

Nov 2 · 5 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#api](https://hashnode.com/tag/api)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
