CivArchive
    ComfyUI Custom Node for Filename Extraction from Upload Nodes - v1.0
    Preview 116660424

    S&R is supposed to work like this- if you want the value of a widget for something, like a file prefix, you use %Node.Widget%, for example, %UploadImage.Image%. So if you put that into a video combiner node prefix widget for an I2V, your video will be saved with the input image as the prefix.

    I don't know what the deal is with the latest comfy version - S&R linking is refusing to work for me on all new workflows I create. It works fine for existing ones, just not new ones.

    Now, if you use a path loader, you can extract the path from the widget, extract the full path, do a little regex filtering, and get the same result. But using path is annoying, slow. Problem is, you can't get the path if you use a regular uploader. Well, you can get with with UploadAndResizeImage, but that doesn't work for videos, in case you are pulling a frame from one, which I do a lot. Also, it's the full path, which is annoying, slow.

    So I wrote this little custom node. It does the same thing as an Upload node does, but it just puts out the full path as well as a stripped-down filename only, as strings. You can plug the full path into the path widget of a Load from Path node to get your source and the filename into a Save node to get your prefix.

    I tried to make it accept video and images, but that gave me problems, probably because I don't know what I'm doing, so I split it into Image and Video nodes. I'll post an image showing exactly what the outputs generate.

    Install is just dropping the folder into custom nodes folder. No fancy dependencies needed, obviously, it's just a few lines of python for each and an init file for the manager.

    Posting because, why not. I like building in comfy, and I've taken my fair share of cool stuff, so I post whatever meager contribution I have to contributize. Giving it a git page would be laughable. Maybe useful to someone. Maybe not. Nevertheless, here it be.

    Description

    We don't need no stinking versions.

    Other
    Wan Video 2.2 I2V-A14B

    Details

    Downloads
    25
    Platform
    CivitAI
    Platform Status
    Available
    Created
    1/7/2026
    Updated
    1/9/2026
    Deleted
    -

    Files

    comfyuiCustomNodeFor_v10.zip

    Mirrors

    CivitAI (1 mirrors)