I make a GET request to an URL to download a video. The Response Format is file so it output a “data” file with Directory and File name properties.
I want to use this file in a node to upload this video as Instagram Reel.
But, I can’t find a way to use this file in my Instagram API Node.
How can I access the “Directory” and “File Name” properties of my Get Request Node ?
Hi @Theovogg, so it turns out reconstructing the url of the binary data won’t help in terms of what you’re trying to do.
By default n8n keeps the binary file in memory not on disk so there is no local directory, hence there’s no $binary.data.id in your case. But even if you were able to reconstruct the url to your local directory, there’s no way to post the file from the directory to an external server so it won’t help.
To solve your issue, you would need to upload the video file you downloaded to another storage service. You can do this by choosing the “binary data” option to send in the second HTTP Request node. The binary file name should be the file name from the previous Download video node, by default it will be data. Upload it to a storage service like s3 that has a public url for the video file, which Instagram can then cURL. Then add another node to make the POST request to Instagram to upload your video.
Hope that makes sense and sorry for making misleading suggestions in my earlier replies!