Nodes/comfyui_snacknodes/Save to Cloud Drive
ComfyUI Node

Save to Cloud Drive

Upload images and videos to your own cloud drive (Google Drive, WebDAV, Cloudflare R2), optionally end-to-end encrypted. Hover over each option for details.

By svbmwjwj·Created 7 months ago·Updated 21 days ago· 1
Save to Cloud Drive
  • images
  • video
  • file_count
◄provider▾►
◄remote_folderComfyUI/%date:yyyy-MM-dd%►
◄encryptfalse►
◄previewfalse►
◄keep_local_copyfalse►
◄wait_for_uploadfalse►
◄filename_prefixComfyUI►
◄stop_on_errortrue►
◄file_paths—►
CategorySnackNodes

Inputs (11)

NameTypeDefaultDescription
providerCOMBOWhich cloud drive to upload to. Connect drives in SnackNodes > Cloud drives (top bar) (click the status line below).
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%. Existing files are never overwritten (name_1, name_2 ...).
encryptBOOLEANfalseEncrypt file contents and names before upload (Cryptomator vault format); open them with the Cryptomator app. Set up the vault once in SnackNodes > Cloud drives (top bar).
previewBOOLEANfalseShow the saved images on the node after the run.
keep_local_copyBOOLEANfalseOn: also keep the files in ComfyUI's output folder. Off: nothing is kept in output; the temporary copies are deleted after the upload or when ComfyUI restarts.
wait_for_uploadBOOLEANfalseOff (default): files upload in the background and the workflow goes on at once; progress shows on the node, and unfinished uploads continue after a restart. On: the workflow waits here until the upload is done, so the file_count output counts uploaded files (for automation).
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; the file_count output tells how many files were uploaded. With background uploads this only applies to setup problems found before queueing (drive not connected, no vault).
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 (1)

NameTypeDescription
file_countINTNumber of files: uploaded (wait_for_upload on; with stop_on_error off and a failure, the ones done before it) or queued for upload (off). 0 when nothing was uploaded.