Nodes/ComfyUI-fal-API/Upload File (fal)
ComfyUI Node

Upload File (fal)

Turn a local file into a fal URL

By gokayfem·Created 2 years ago·Updated a day ago· 203
Upload File (fal)
    • file_url
    path

    This is the small, boring, essential node. It takes a file on your disk, uploads it to fal's storage, and returns a public URL. That's the whole job - and you'll need it more often than you'd think, because a lot of fal nodes don't take a file, they take a URL.

    Look around this pack and you'll see inputs like audio_url, input_video_url, and the lora_path slots. Those all want a link fal can reach, not a path on your machine - because the model runs on fal's servers, and fal can't see your hard drive. UploadFile_fal is the bridge: point it at your local audio track, video, or LoRA file, run it, and hand the resulting URL to whichever node needs it.

    The inputs and output

    • path - a string: the location of the file on the machine running ComfyUI. That's the only input.
    • file_url - the output, a string. The public URL of your now-uploaded file.

    There's nothing else to configure. It's plumbing.

    Where it fits

    The pattern shows up constantly once you're chaining fal nodes:

    • Driving Wan26_fal with your own audio? Upload the audio file here, pass file_url into its audio_url.
    • Upscaling a local clip with Bria_Video_Increase_Resolution_fal? Upload it, feed the URL into input_video_url.
    • Using a LoRA that lives on your disk rather than at a public link? Upload it, drop the URL into a lora_path slot.

    If a fal node takes an image or video socket directly (an IMAGE or VIDEO input), you don't need this - the pack uploads those for you automatically. This node is specifically for the cases where the input is a *_url string and your asset is local.

    Installing it

    ComfyUI Manager → search ComfyUI-fal-API → install → restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/gokayfem/ComfyUI-fal-API.git
    pip install -r ComfyUI-fal-API/requirements.txt
    

    No downloads. Set your fal key like the rest of the pack (config.ini, or export FAL_KEY=your_key; keys at fal.ai/dashboard/keys), then restart.

    Where people get burned

    The one real gotcha is the path: it's relative to wherever ComfyUI is actually running, which on a remote or cloud instance is not your laptop. If the upload fails with a file-not-found, the file isn't where the server can see it - use an absolute path, or put the file somewhere ComfyUI can reach. On a local install this is rarely an issue; on a hosted one it's the first thing to check.

    Two smaller notes. The pack deduplicates uploads, so re-uploading the same file doesn't re-transfer it - cheap and fast on repeats. And the URL points at fal's storage, which is fine for feeding straight into the next node in the same session; if you need a permanent link, save the asset properly rather than relying on a fal upload URL to live forever.

    Categoryvideo

    Inputs (1)

    NameTypeDefaultDescription
    pathSTRING

    Outputs (1)

    NameTypeDescription
    file_urlSTRING