Skip to content
  • App
  • Make
  • n8n
  • MCP

How to turn a file into a download link

To get a link for a file in a scenario or workflow, send it to the 1001fx function uploadasset – from Make, n8n or the 1001fx app. It stores the file and returns a download URL, which you can pass to modules and APIs that expect a URL instead of a file. The file is deleted automatically at the end of the next day.

The fields

The same in the 1001fx app, Make, n8n and AI assistants. uploadasset costs 3 credits per call.

file
– The file from the previous step: image, PDF, ZIP, audio, video or any other file.

All parameters and examples: uploadasset reference.

Example

What you send to uploadasset and what comes back – the same in every tool.

Upload an asset

Uploads an asset

Input

Expects one file named as file parameter: file
{
  "files": [
    {
      "name": "1600x900.png",
      "type": "image/png",
      "path": "testdata/images/1600x900.png"
    }
  ]
}

Output · HTTP 200

Result is a single file.
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/files/uploadasset' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file=@1600x900.png'

In the 1001fx app

Without a scenario or workflow: run the function in your browser for a one-off task, or to try the fields before you build the automation.

uploadasset in the 1001fx app: the form with example values
Upload an Asset in the 1001fx app
  1. 1

    Open the function

    Log in to the 1001fx app and open Functions → Upload an Asset.

  2. 2

    Fill the fields

    Fill the fields as described above. Files can be uploaded from your computer.

  3. 3

    Run it

    Click Run. The answer appears next to the form; files come as a download. Each run is charged like an API call.

  4. 4

    Reuse the call

    The same page shows the call as cURL command, ready for scripts and other tools.

In Make

  1. 1

    Start the scenario

    Start with the module that delivers the file, for example Google Drive "Download a file" or the attachment of Gmail "Watch emails".

  2. 2

    Add the 1001fx module

    Add a module, search for 1001fx and pick “Upload an Asset”. Select your 1001fx connection or create one with your API key.

  3. 3

    Fill the fields

    Fill the fields as described above, mapped from the previous steps.

  4. 4

    Use the result

    The module returns result with the download URL. Map it into the next module that expects a URL, for example a video or audio function of 1001fx or an HTTP request.

Connecting 1001fx: 1001fx for Make.

In n8n

  1. 1

    Start the workflow

    Start with the node that delivers the file, for example a Google Drive node that downloads it or a Gmail Trigger with the attachment.

  2. 2

    Add the 1001fx node

    Add a node, search for 1001fx and pick “Upload an Asset”. Select your 1001fx credential or create one with your API key.

  3. 3

    Fill the fields

    Fill the fields as described above, mapped from the previous steps.

  4. 4

    Use the result

    The node returns result with the download URL. Use it in the next node that expects a URL, for example an HTTP Request.

Connecting 1001fx: 1001fx for n8n.

With an AI assistant (MCP)

Without building anything: connect your assistant to 1001fx once and ask for the result in your own words.

  1. 1

    Connect your assistant

    Add the 1001fx MCP server to Claude, Cursor or another MCP client and log in to 1001fx.

  2. 2

    Ask for the result

    Describe what you need and mention 1001fx, for example: "Use 1001fx to turn a file into a download link". The assistant finds files/uploadasset and fills its fields.

  3. 3

    Get the answer

    Pass files as links. File results come back as a temporary download link. Each run is charged like an API call.

Tips

  • The link works until the end of the next day: use it in the same run, not for permanent storage.
  • If an API wants the file content as text instead of a link, use asset2base64.

Frequently asked questions

What does a call cost?
3 credits per call.
How long does the link work?
The file is deleted automatically at the end of the next day.
Ask 1001fx