upload_dataset_file_from_url
Add an image, video, or caption file to a RunComfy dataset by fetching it from a public HTTPS URL. Supports same-name overwrite; use for files under 150 MB.
Instructions
Add one file to a dataset by fetching it from a public URL.
Downloads ``source_url`` and forwards the bytes to
``POST /prod/v1/trainers/datasets/{dataset_id}/upload``.
Args:
dataset_id: Target dataset.
source_url: Publicly reachable HTTPS URL for an image, video, or
caption ``.txt`` file. Must be under 150 MB.
filename: Name to store it under. Defaults to the URL's
basename. For LoRA training each image/video needs a caption
``.txt`` with the *same base name* — ``img_0001.jpg`` pairs
with ``img_0001.txt``.
Re-uploading the same filename overwrites the previous copy. For
files the caller holds locally, or anything over 150 MB, use
``get_dataset_upload_urls`` and PUT the bytes directly instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | ||
| dataset_id | Yes | ||
| source_url | Yes |