I have a form trigger that uploads some images.
I can’t workout how to save the files. I need to upload the files to facebook later in the workflow ( already worked this bit out)
I can see the binary data as output in the code node.
What am I missing here please.
Information on your n8n setup
n8n version: 1.59
Database (default: SQLite):
n8n EXECUTIONS_PROCESS setting (default: ):
Running n8n via (Render):
Operating system: win 10
n8n
October 12, 2024, 12:32am
2
It looks like your topic is missing some important information. Could you provide the following if applicable.
n8n version:
Database (default: SQLite):
n8n EXECUTIONS_PROCESS setting (default: own, main):
Running n8n via (Docker, npm, n8n cloud, desktop app):
Operating system:
This seems to work as I see the binary files as output and no errors.
But I cannot find the files on the render.com server using find -name *.jpg in the shell.
The disk path is /opy/render/.n8n I tried adding that and the result was the same.
So where are the files saved to ???
As a workaround I uploaded the files using FTP and used the urls to post to facebook.
I have been trying to find out where the files are going and how to locate them.
On the install on Render.com I located at render@srv-crc6u5jtq21c738qbv3g-77cb59f9f4-hwg4c/opy/render/.n8n so I created a folder myDir
When saving files I used /opy/render/.n8n/myDir/{{ $json.fileName }}
The files are located in that folder.
I cannot work out the url to this folder. https://mySite.onrender.com//opy/render/.n8n/myDir/441161212_122111615192297037_4704017064160374934_n2.jp
I tried various paths. Where is this file please.
Installed locally on windows 10 using npm
Same workflow.
{{ $json.fileName }} saves the file I can see it in the output.
But I can’t find the files on C: drive.
I can read the file using the same path.
Any ideas ?
Jon
October 14, 2024, 3:56pm
6
Hey @Steve_Warburton ,
I am not familar with Render however if it is using Docker the files will be in the docker container in the path you specify. I suspect /opy/render/.n8n
is just where your database is so it could be worth adding a similar folder for your and mounting it to the container so the files can be saved and accessed outside of the container.
What is the url to the folder. ?