# Using form data (Content-Type: multipart/form-data) in custom apps

**URL:** <https://community.make.com/t/using-form-data-content-type-multipart-form-data-in-custom-apps/98049>\
**Category:** Beginner Questions\
**Tags:** custom-apps, file-upload\
**Created:** [December 6, 2025, 10:47am UTC](https://community.make.com/t/using-form-data-content-type-multipart-form-data-in-custom-apps/98049 "2025-12-06T10:47:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Shon](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@Aaron\_Shon](https://community.make.com/u/Aaron_Shon)\
**Post date:** [December 6, 2025, 10:47am UTC](https://community.make.com/t/using-form-data-content-type-multipart-form-data-in-custom-apps/98049/1 "2025-12-06T10:47:29Z")

</div>

### 🎯 What is your goal?

I would like to upload a binary file to S3 using `Content-Type: multipart/form-data` via `POST` from a custom app module.

### 🤔 What is the problem?

The symptom I’m seeing is that S3 returns HTTP 403 (instead of the expected 201), despite all authentication fields being set correctly in the body. This same flow, with the form data fields set in the same way, works via other methods (cURL, other workflow platforms besides Make, ..).

I believe this problem is related to:

> [@Multipart/form-data custom app](https://community.make.com/t/multipart-form-data-custom-app/97340/12):
>
> Didn’t work. So here’s where I’m at currently. Communication (the mapping tab is the same) { "url": "https://api.dpdf.io/v1.0/dlex-layout", "method": "POST", "type": "multipart/form-data", "headers": { "Authorization": "Bearer {{parameters.apiKey}}" }, "log": { "sanitize": ["request.headers.authorization"] }, "body": { "DlexPath": "{{parameters.DlexPath}}", "LayoutData": { "value": "{{parameters.file\_data}}", "options": { "filename": "{{par…

I believe, though I can’t yet prove, that the root cause here is that Make’s framework continues adding an “Authorization” header despite my explicitly unsetting the header in my module. This will cause S3 to return a 403. The framework seems to keep trying to insert a bearer token, as defined in the “Connection” section. I notice at least one other user seems to have had the same problem getting a module to connect to AWS S3 without an “Authorization:” header:

> [@How to remove Authorization header from GET request in module](https://community.make.com/t/how-to-remove-authorization-header-from-get-request-in-module/28553/6):
>
> You might need to split it into two modules then.

The suggestion in that thread is to use a separate, empty connection just for that module. That recommendation however doesn’t work. When I try, Make gives me the error “Provided account ‘x’ is not compatible with the ‘y’ module.”

Can anyone point to a working example, that has been verified with a successful run, of a custom [Make.com](http://Make.com) app performing a successful `multipart/form-upload` request to S3?

Thanks in advance for any help or advice on this!

### 🧪 What have you tried so far?

I have followed the developer documentation for making `multipart/form-data` requests:

> **[Multipart/form-data | Custom Apps Documentation | Make Developer Hub](https://developers.make.com/custom-apps-documentation/component-blocks/api/multipart-form-data)**
>
> A form-data type that works with body payload or file upload

**Details from the module I’m writing follow:**

My “Communication” section:

```auto
[
	{
		// Step 1: Get a file upload ID.
		"url": "/file-uploads", // Relative to base URL
		"method": "POST",
		"body": {
			"content_type": "{{parameters.content_type || 'application/pdf'}}",
			"filename": "{{parameters.file_name}}"
		},
		"response": {
			"temp": {
				"fileUploadId": "{{body.id}}",
				"fileUploadFields": "{{body.upload_fields}}",
				"fileUploadUrl": "{{body.upload_url}}"
			}
		}
	},
	{
		"url": "{{temp.fileUploadUrl}}",
		"method": "POST",
		"type": "multipart/form-data",
		"body": {
			"acl": "{{temp.fileUploadFields.acl}}",
			"key": "{{temp.fileUploadFields.key}}",
			"policy": "{{temp.fileUploadFields.policy}}",
			"signature": "{{temp.fileUploadFields.signature}}",
			"x-amz-algorithm": "{{temp.fileUploadFields['x-amz-algorithm']}}",
			"x-amz-credential": "{{temp.fileUploadFields['x-amz-credential']}}",
			"x-amz-date": "{{temp.fileUploadFields['x-amz-date']}}",
			"x-amz-security-token": "{{temp.fileUploadFields['x-amz-security-token']}}",
			"Content-Type": "application/pdf",
			"file": {
				"value": "{{parameters.file_data}}",
				"options": {
					"filename": "{{parameters.file_name}}"
				}
			}
		},
		"headers": {
			"authorization": "",
			"content-type": "multipart/form-data"
		}
	},
	{
		"url": "/plans",
		"method": "POST",
		"body": {
			"name": "{{parameters.planName}}",
			"file_upload_id": "{{temp.fileUploadId}}"
		}
	}
]

```

My “Mappable parameters” section:

```auto
[
	{
		"name": "file_name",
		"type": "text",
		"label": "File Name",
		"required": true,
		"semantic": "file:name"
	},
	{
		"name": "file_data",
		"type": "buffer",
		"label": "File",
		"required": true,
		"semantic": "file:data"
	},
	{
		"name": "content_type",
		"type": "text",
		"label": "Content Type",
		"required": false
	}
]

```

---

<div class="post-metadata">

**Author:** ![Henk-Blue\_Marker](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/henk-blue_marker/32/89127_2.png) [@Henk-Blue\_Marker](https://community.make.com/u/Henk-Blue_Marker)\
**Post date:** [December 6, 2025, 12:00pm UTC](https://community.make.com/t/using-form-data-content-type-multipart-form-data-in-custom-apps/98049/4 "2025-12-06T12:00:43Z")

</div>

Hi @Aaron_Shon,

Try unsetting the authorization header like this:

```auto
"headers": {
		"Authorization": "{{undefined}}",
        "content-type": "multipart/form-data"
},

```

Cheers,  
Henk

---

<div class="post-metadata">

**Author:** ![Aaron\_Shon](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@Aaron\_Shon](https://community.make.com/u/Aaron_Shon)\
**Post date:** [December 6, 2025, 9:48pm UTC](https://community.make.com/t/using-form-data-content-type-multipart-form-data-in-custom-apps/98049/5 "2025-12-06T21:48:00Z")

</div>

Thanks @Henk-Blue_Marker ! That removed the `Authorization` header just as I wanted–but it turns out something else was necessary to get a `POST` to S3 working.

I recalled that in a `multipart/form-data` `POST` to S3, the `file` form field (the thing that actually contains the binary data from the file) **must** come last in the form body. See this AWS documentation for reference, which clearly states that `file:` must come last:

> **[POST Object - Amazon Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html)**
>
> The Amazon S3 POST Object REST operation adds an object to a specified bucket by using HTML forms.

Since I’d listed `file:` as the last entry in the .iml of the Communication section, I’d assumed that the same order would be sent over the wire. Unfortunately, this isn’t the case; the entries in the form are reordered compared to what is specified in the file (this can be seen using the Make Chrome debug extension).

I ended up creating a custom JS function to create the form fields in proper order, and used that to create the `body` section in the Communication section of the module. The scenario now correctly uploads to S3 🙂 (It seems like it would be worthwhile to include a hint on this in the Make documentation for `multipart/form-data`, as the form field reordering behavior might be surprising to other folks as well..)

Thanks again for all the help!

---

<div class="post-metadata">

**Author:** ![Henk-Blue\_Marker](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/henk-blue_marker/32/89127_2.png) [@Henk-Blue\_Marker](https://community.make.com/u/Henk-Blue_Marker)\
**Post date:** [December 9, 2025, 4:51pm UTC](https://community.make.com/t/using-form-data-content-type-multipart-form-data-in-custom-apps/98049/6 "2025-12-09T16:51:42Z")

</div>

> [@Aaron\_Shon](#):
>
> the entries in the form are reordered compared to what is specified in the file

Yes this is quite a confusing behavior. Great that you found a working salutation and sharing here!

Cheers,  
Henk

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [December 23, 2025, 4:57pm UTC](https://community.make.com/t/using-form-data-content-type-multipart-form-data-in-custom-apps/98049/7 "2025-12-23T16:57:07Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


