Save Image Extended
SaveImageExtended
Save images locally and/or upload to a cloud provider. How it works ------------ - Local: Saves PNG files under the ComfyUI output directory (only if 'Save to Local' is enabled). - Cloud: Uploads all images in one batch per run (only if 'Save to Cloud' is enabled). - Result: UI shows local files; cloud upload details are returned in the node output under 'cloud'. Cloud provider examples ----------------------- - AWS S3 → bucket_link: s3://my-bucket/prefix | cloud_api_key: JSON {access_key, secret_key, region} or 'ACCESS:SECRET[:REGION]'. - S3-Compatible → bucket_link: https://endpoint.example.com/my-bucket/prefix | cloud_api_key: same as S3. - Google Cloud Storage → bucket_link: gs://bucket/prefix or bucket/prefix | cloud_api_key: service-account JSON string or path (empty uses ADC). - Azure Blob → bucket_link: connection string OR https://account.blob.core.windows.net/container/prefix | cloud_api_key: connection string or account key/SAS when using URL. - Backblaze B2 → bucket_link: b2://bucket/prefix or bucket/prefix | cloud_api_key: KEY_ID:APP_KEY. - Google Drive → bucket_link: /MyFolder/Sub OR drive://<folderId>/<optional/subpath> | cloud_api_key: OAuth2 access token. - Dropbox → bucket_link: /base/path | cloud_api_key: JSON {"app_key","app_secret","authorization_code"}. The refresh token is automatically fetched and cached. Legacy access tokens also work but expire after ~4 hours. - OneDrive → bucket_link: /base/path | cloud_api_key: OAuth2 access token. - FTP → bucket_link: ftp://user:pass@host[:port]/basepath | cloud_api_key: not used. - Supabase → bucket_link: <bucket_name> | cloud_api_key: JSON {url, key} or 'url|key'. - UploadThing → bucket_link: (leave blank) | cloud_api_key: UploadThing secret key (sk_...). Returns utfs.io URLs. Token refresh (optional) ------------------------ - Google Drive cloud_api_key JSON: {client_id, client_secret, refresh_token} (optional access_token). - OneDrive cloud_api_key JSON: {client_id, client_secret, refresh_token, tenant='common'|'consumers'|'organizations', redirect_uri?}. When provided, a fresh access token is obtained automatically before uploading.
Pack: comfyui-save-file-extended
custom_nodes.comfyui-save-file-extended
Inputs (11)
| Name | Type | Required |
|---|---|---|
| images | IMAGE | required |
| filename_prefix | STRING | required |
| filename | STRING | optional |
| custom_filename | STRING | optional |
| save_to_cloud | BOOLEAN | optional |
| cloud_provider | COMBO | optional |
| bucket_link | STRING | optional |
| cloud_folder_path | STRING | optional |
| cloud_api_key | STRING | optional |
| save_to_local | BOOLEAN | optional |
| local_folder_path | STRING | optional |
Outputs (1)
| Name | Type |
|---|---|
| filenames | STRING |