# Upload a local file to an s3Bucket via a form

**URL:** <https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480>\
**Category:** Questions\
**Created:** [April 3, 2025, 3:51pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480 "2025-04-03T15:51:40Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevespaw](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/stevespaw/32/82737_2.png) [@stevespaw](https://community.n8n.io/u/stevespaw)\
**Post date:** [April 3, 2025, 3:51pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/1 "2025-04-03T15:51:40Z")

</div>

OK, I thought this would be very simple. But - it is elusive.  
I want a simple form to select a local file and upload it to an s3 bucket.  
I have the bucket setup - but I cannot figure out how to connect it to the local file path.  
When you use the form for selecting a file, it seems to upload it to the n8n instance. Not what I want, but even then how would I use that to send to s3. (This is a bad intermediate step anyway. Is the file a temp? or do I have to delete it from the n8n instance? )

What I really want is a simple upload directly to s3. (the file selector in the form is perfect, but I want it to go directly to s3.)  
Is this possible? Is there a sample template?  
I want to do the same with Google drive BTW.  
Please help, Thanks

## Information on your n8n setup

- \*\*n8n version:_Latest_
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, Cloudron):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![Olek](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/olek/32/59619_2.png) [@Olek](https://community.n8n.io/u/Olek)\
**Post date:** [April 3, 2025, 4:42pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/2 "2025-04-03T16:42:25Z")

</div>

This is not possible as there is no way in this scenario to skip n8n server. Same is true for any server which is not s3 or Google Drive own interfaces exposed to the users. Actually, aws and Google Drive web interfaces are not direct access to the underlying stores, the web servers do some background work to accomplish the task.  
There is also no way for n8n form to know your aws or Google credentials securely.

So, in your n8n workflow you need to add relevant node (s3 or Google Drive) to upload the file, using credentials and other details about destination.

Did you try any n8n workflow templates or tutorials about handling files in n8n?

---

<div class="post-metadata">

**Author:** ![stevespaw](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/stevespaw/32/82737_2.png) [@stevespaw](https://community.n8n.io/u/stevespaw)\
**Post date:** [April 3, 2025, 5:37pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/3 "2025-04-03T17:37:17Z")

</div>

Yes I have s3 and gDrive nodes setup properly with credentials. I have workflows that can move files between them. The Question is about a LOCAL file UPLOAD. I can even download files from these. Upload is the question. Other templates I have looked at no longer work. They are old and use node “get binary file”. And none of them work. Look for “upload file to YouTube”. (this is also something I want to do, but it does not work.)

---

<div class="post-metadata">

**Author:** ![Olek](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/olek/32/59619_2.png) [@Olek](https://community.n8n.io/u/Olek)\
**Post date:** [April 3, 2025, 5:56pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/4 "2025-04-03T17:56:04Z")

</div>

Did you try [n8n Form Trigger node documentation | n8n Docs](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.formtrigger/) and then use S3 or GDrive node to put the file on the store?

I am not sure I quite follow. What workflow do you have and what works not as expected?

---

<div class="post-metadata">

**Author:** ![stevespaw](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/stevespaw/32/82737_2.png) [@stevespaw](https://community.n8n.io/u/stevespaw)\
**Post date:** [April 3, 2025, 6:19pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/5 "2025-04-03T18:19:19Z")

</div>

Yes of course I have done this, I have created quite a few form based projects. Please create a very simple workflow to upload a local file to a gDrive account and post it. It should be 2 or 3 nodes.

---

<div class="post-metadata">

**Author:** ![Olek](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/olek/32/59619_2.png) [@Olek](https://community.n8n.io/u/Olek)\
**Post date:** [April 3, 2025, 7:02pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/6 "2025-04-03T19:02:34Z")

</div>

Is it a test of sorts? 🙂  
Exactly two nodes to get a file from user and upload it to gDrive into a specific folder.  
What is your point?

---

<div class="post-metadata">

**Author:** ![mohamed3nan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mohamed3nan/32/188347_2.png) [@mohamed3nan](https://community.n8n.io/u/mohamed3nan)\
**Post date:** [April 3, 2025, 7:05pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/7 "2025-04-03T19:05:30Z")

</div>

OK, I’m curious too about the issue, so here is a workflow to upload file(s) via a form to Google Drive:

so what is the problem now 😃 ?

---

<div class="post-metadata">

**Author:** ![Olek](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/olek/32/59619_2.png) [@Olek](https://community.n8n.io/u/Olek)\
**Post date:** [April 3, 2025, 7:07pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/8 "2025-04-03T19:07:35Z")

</div>

Kudos for covering a broader use case

---

<div class="post-metadata">

**Author:** ![stevespaw](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/stevespaw/32/82737_2.png) [@stevespaw](https://community.n8n.io/u/stevespaw)\
**Post date:** [April 4, 2025, 2:27pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/9 "2025-04-04T14:27:06Z")

</div>

Thank you so much! @mohamed3nan . You recognized the elusive piece! The Split out and binary part. This was exactly what I was missing. This works perfectly and I will be testing this with some more complicated projects now.  
Thanks again, I hope this helps others.

---

<div class="post-metadata">

**Author:** ![mohamed3nan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mohamed3nan/32/188347_2.png) [@mohamed3nan](https://community.n8n.io/u/mohamed3nan)\
**Post date:** [April 4, 2025, 2:30pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/10 "2025-04-04T14:30:04Z")

</div>

You’re welcome 🙏🏻

---

<div class="post-metadata">

**Author:** ![stevespaw](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/stevespaw/32/82737_2.png) [@stevespaw](https://community.n8n.io/u/stevespaw)\
**Post date:** [April 4, 2025, 3:16pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/11 "2025-04-04T15:16:54Z")

</div>

@mohamed3nan  
Ahh now another issue - after doing testing this will fail on any file larger than 200MB. Any ideas? Should I post another question? (I have my env set to filesystem already BTW) The operation says complete- but the gDrive node never activates - and I have no errors in logs.

---

<div class="post-metadata">

**Author:** ![mohamed3nan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mohamed3nan/32/188347_2.png) [@mohamed3nan](https://community.n8n.io/u/mohamed3nan)\
**Post date:** [April 4, 2025, 3:23pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/12 "2025-04-04T15:23:11Z")

</div>

I’m not really sure tbh,

> [@N8N Webhook Upload limit when using Form-Data](http://community.n8n.io/t/n8n-webhook-upload-limit-when-using-form-data/54021/6):
>
> n8n uses [formidable](https://github.com/node-formidable/formidable) to parse form-data payloads, which defaults to 200MiB for max file size. The 210MB file that’s working for you is about 200MB. This will be addressed [here](https://github.com/n8n-io/n8n/pull/10857). Once this change is merged, you’ll be able to set a higher limit for your n8n instance via an env variable.

Maybe consider opening a new question to see if anyone has dealt with large file uploads like this before…

---

<div class="post-metadata">

**Author:** ![stevespaw](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/stevespaw/32/82737_2.png) [@stevespaw](https://community.n8n.io/u/stevespaw)\
**Post date:** [April 4, 2025, 3:25pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/13 "2025-04-04T15:25:24Z")

</div>

Thanks for the reply and link. My use case will likely have files that are 3-4GB. (video files)

---

<div class="post-metadata">

**Author:** ![stevespaw](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/stevespaw/32/82737_2.png) [@stevespaw](https://community.n8n.io/u/stevespaw)\
**Post date:** [April 4, 2025, 3:29pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/14 "2025-04-04T15:29:23Z")

</div>

OK I will try the N8N\_FORMDATA\_FILE\_SIZE\_MAX adjustments and report back.  
[n8n-docs/docs/hosting/configuration/environment-variables/endpoints.md at ea4d704d9e2c5b964a48bd814216480a8d8c6bfa · n8n-io/n8n-docs](https://github.com/n8n-io/n8n-docs/blob/ea4d704d9e2c5b964a48bd814216480a8d8c6bfa/docs/hosting/configuration/environment-variables/endpoints.md)

---

<div class="post-metadata">

**Author:** ![stevespaw](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/stevespaw/32/82737_2.png) [@stevespaw](https://community.n8n.io/u/stevespaw)\
**Post date:** [April 4, 2025, 3:37pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/15 "2025-04-04T15:37:27Z")

</div>

OK! That was the right path. You Rock @mohamed3nan.  
N8N\_FORMDATA\_FILE\_SIZE\_MAX=4000  
Just successfully uploaded a 1.3GB file!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [April 11, 2025, 3:38pm UTC](https://community.n8n.io/t/upload-a-local-file-to-an-s3bucket-via-a-form/96480/16 "2025-04-11T15:38:11Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
