Download file via HTTPs Request and Rename

Hello!

I have an unresolved problem that needs the help of everyone.
Situation: I want to download a .mp4 file with HTTP Request (for example: https://storage.theapi.app/videos/274568677.mp4) to a folder is indicated in VPS (Example:/home/n8n/videos). Then change the file name to number “1.mp4”, continue to download the next file to the same folder and change the name to number “2.mp4” (the name of the file will be added 1).

I would like to guide the implementation process.
Please help everyone. Thanks!

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

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:

Something like this should work.

Now you just have to create your logic for naming the files the way you want.
You can check for the highest number or register the names in a speadsheet… something like that.

If my reply answers your question, please remember to mark it as a solution.

2 Likes

Thanks you very much!

1 Like

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