A ComfyUI plugin for uploading generated images and videos to Alibaba Cloud OSS (Object Storage Service).
- Image Upload Node: Upload ComfyUI generated images to OSS
- Video Upload Node: Upload videos (compatible with VideoHelperSuite) to OSS
- Random Filename Generation: Option to generate random filenames with timestamp
- Custom Filename: Option to specify custom filenames
- Configurable OSS Settings: Support for custom endpoint, bucket, access keys, and paths
- Copy the
ComfyUI-OSS-Upload
folder to your ComfyUIcustom_nodes
directory - Install required dependencies:
pip install oss2
Inputs:
image
: IMAGE type from ComfyUIendpoint
: OSS endpoint (e.g., https://oss-cn-hangzhou.aliyuncs.com)bucket
: OSS bucket nameaccess_key
: Access Key IDaccess_secret
: Access Key Secretpath
: OSS storage path (e.g., comfyui/images)random_filename
: Boolean to enable/disable random filename generationfilename
: Custom filename (used when random_filename is False)
Output:
url
: Complete URL of the uploaded file on OSS
Inputs:
video
: VHS_FILENAMES type from VideoHelperSuite VideoCombine nodeendpoint
: OSS endpoint (e.g., https://oss-cn-hangzhou.aliyuncs.com)bucket
: OSS bucket nameaccess_key
: Access Key IDaccess_secret
: Access Key Secretpath
: OSS storage path (e.g., comfyui/videos)random_filename
: Boolean to enable/disable random filename generationfilename
: Custom filename (used when random_filename is False)
Output:
url
: Complete URL of the uploaded file on OSS
When random filename is enabled, files are named with the format:
{timestamp}_{random_string}.{extension}
Example: 20241210_143052_a3k9m2p7.png
- Generate an image using ComfyUI nodes
- Connect the IMAGE output to the OSS Image Uploader node
- Configure your OSS credentials and settings
- Run the workflow
- The node will output the complete OSS URL of the uploaded file
- Keep your OSS access keys secure
- Consider using STS tokens for production use
- Set appropriate bucket permissions
- Use HTTPS endpoints for secure uploads
- Tested with ComfyUI
- Compatible with VideoHelperSuite for video uploads
- Supports common image formats: PNG, JPG, JPEG, WebP
- Supports common video formats: MP4, AVI, MOV, WebM, MKV