Nodes/comfyui_snacknodes/Save to Cloud Drive
ComfyUI Node

Save to Cloud Drive

Upload images, a video or existing files to your own cloud drive, optionally end-to-end encrypted. One-time setup (in a terminal on the ComfyUI machine): python custom_nodes/comfyui_snacknodes/auth.py google_drive python custom_nodes/comfyui_snacknodes/auth.py webdav --url URL --username USER python custom_nodes/comfyui_snacknodes/auth.py vault-create webdav (only for encrypt) Credentials are stored on that machine, never in the workflow. Usage - Connect images and/or video; pick the drive. - remote_folder: folder on the drive, created if missing. Date tokens: ComfyUI/%date:yyyy-MM-dd% -> ComfyUI/2026-11-01 ComfyUI/%year%/%month% -> ComfyUI/2026/11 - encrypt: file contents and names are encrypted before upload (Cryptomator vault); open them with the Cryptomator app. - preview: show the images on the node after the run. - keep_local_copy: also keep the files in ComfyUI's output folder. - Advanced: filename_prefix (local file names); stop_on_error off = keep going and output success = False instead of stopping the workflow. - Outputs: remote_paths (one line per file) and success (True/False) for automation. - file_paths (input): connect a text node listing files that already exist in the output folder, one per line, e.g. video/ComfyUI_00001_.mp4 Existing files are never overwritten (name_1, name_2 ...).

By svbmwjwj·Created 6 months ago·Updated about 22 hours ago· 1
Save to Cloud Drive
  • images
  • video
  • remote_paths
  • success
◄provider▾►
◄remote_folderComfyUI/%date:yyyy-MM-dd%►
◄encryptfalse►
◄previewtrue►
◄keep_local_copytrue►
◄filename_prefixComfyUI►
◄stop_on_errortrue►
◄file_paths—►
CategorySnackNodes

Inputs (10)

NameTypeDefaultDescription
providerCOMBOWhich cloud drive to upload to. Authorize it once with auth.py.
remote_folderSTRINGComfyUI/%date:yyyy-MM-dd%Folder on the drive (inside the vault when encrypting); created if missing. Date tokens: %date:yyyy-MM-dd%, %year%, %month%, %day%, %hour%, %minute%, %second% (server local time). Example: ComfyUI/%date:yyyy-MM%
encryptBOOLEANfalseEncrypt file contents and names before upload (Cryptomator vault format); open them with the Cryptomator app. Create the vault once with auth.py vault-create.
previewBOOLEANtrueShow the saved images on the node after the run.
keep_local_copyBOOLEANtrueOn: also keep the files in ComfyUI's output folder. Off: use the temp folder (cleared when ComfyUI restarts).
filename_prefixSTRINGComfyUIName prefix for saved images/videos, same as Save Image. A sub folder is allowed, e.g. portraits/ComfyUI
stop_on_errorBOOLEANtrueOn: a failed upload stops the workflow with an error. Off: the workflow continues and the success output is False (for automation).
imagesoptIMAGEImages to save as PNG and upload.
videooptVIDEOVideo to save as MP4 and upload.
file_pathsoptSTRINGOptional: connect a text node listing existing files to upload, one per line, relative to ComfyUI's output folder, e.g. video/ComfyUI_00001_.mp4

Outputs (2)

NameTypeDescription
remote_pathsSTRINGOne line per uploaded file: a share link when the drive provides one, otherwise provider:path.
successBOOLEANTrue when every file was uploaded. With stop_on_error off, a failed upload gives False instead of stopping the workflow, so you can branch on it.