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
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?
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.)
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.
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.
@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.