Upload Video:
The FacelessUploadVideo node is designed to facilitate the seamless uploading of video files to a specified cloud storage service. This node extends the capabilities of the NodesSaveVideo class, allowing you to not only save but also upload videos to a remote server. By leveraging cloud storage, you can ensure that your video content is securely stored and easily accessible from anywhere. The primary function of this node is to handle the authentication and communication with the cloud service, ensuring that your video is uploaded efficiently and reliably. This is particularly beneficial for users who need to manage large volumes of video data or require a centralized storage solution for their video assets.
Upload Video Input Parameters:
video
The video parameter represents the video file that you wish to upload. It is of type FACELESS_VIDEO, which is a structured data type containing all necessary information about the video, such as its path and metadata. This parameter is crucial as it determines the content that will be uploaded to the cloud storage.
public_key
The public_key is a string parameter used for authentication with the cloud storage service. It acts as a credential that, in conjunction with the private_key, allows the node to securely access and upload files to your cloud account. The default value is an empty string, and it must be provided for the upload process to succeed.
private_key
Similar to the public_key, the private_key is a string parameter that serves as a part of the authentication mechanism. It is a sensitive piece of information that should be kept secure, as it grants access to your cloud storage. The default value is an empty string, and it is required for the node to function properly.
bucket
The bucket parameter is a string that specifies the target storage location within your cloud account where the video will be uploaded. It acts as a container for your files, and you must provide the correct bucket name to ensure the video is stored in the desired location. The default value is an empty string.
key
The key parameter is a string that defines the unique identifier for the video file within the specified bucket. It is essentially the file name under which the video will be stored in the cloud. Providing a meaningful and unique key helps in organizing and retrieving your files efficiently. The default value is an empty string.
region_host
The region_host is a string parameter that indicates the specific regional endpoint of the cloud storage service. This is important for directing the upload request to the correct server location, which can affect upload speed and availability. The default value is .cn-sh2.ufileos.com, which corresponds to a specific region.
Upload Video Output Parameters:
This node does not produce any output parameters. Its primary function is to perform the upload operation, and it does not return any data upon completion.
Upload Video Usage Tips:
- Ensure that both
public_keyandprivate_keyare correctly set to avoid authentication errors during the upload process. - Verify that the
bucketandkeyparameters are correctly specified to ensure that your video is uploaded to the correct location and can be easily retrieved later. - Consider the
region_hostsetting to optimize upload speeds by selecting the closest regional endpoint to your location.
Upload Video Common Errors and Solutions:
Failed to upload video
- Explanation: This error occurs when the upload process to the cloud storage fails, which could be due to incorrect authentication credentials, an invalid bucket name, or network issues.
- Solution: Double-check your
public_key,private_key,bucket, andkeyparameters to ensure they are correct. Also, verify your network connection and try again. If the problem persists, consult your cloud storage provider's documentation for further troubleshooting steps.
