插件地址:OSS | Fab
插件介绍
如何使用这个插件,该插件对阿里云, 华为云 oss 上传,下载进行支持。插件源码支持全部平台, 只打包出win64.
插件效果:
通过简单的蓝图调用,就行实现oss 大文件下载,上传。并支持并发上传。
插件使用:
如何使用这个插件,对此做此文章。
1、创建下载子系统,并获取下载管理对象类的实体:
2、调用上传函数Upload,并绑定一个事件:
参数说明:
InFilename 表示本地上传文件的路径。
Name : 表示在oss桶中的路径。
oss 表示如下结构内容
struct FOSSConfig
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "FOSSConfig")
FString AccessKeyId; 表示oss 对应的Key
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "FOSSConfig")
FString AccessKeySecret;表示oss 对应的KeySecret
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "FOSSConfig")
FString Bucket; //桶名
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "FPowerData")
FString Type; //aliyun 表示阿里云 huaweiyun 表示华为云
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "FOSSConfig")
FString DomainName; //oss 下载的域名地址
};
绑定事件 参数说明:
Success 表示 上传成功 或者失败。
filename 表示入参InFilename ,原样返回。
3、调用下载函数Download,并绑定一个事件:
Filename 表示阿里云文件的路径。
oss 如上。
绑定事件 参数说明:
Success 表示 上传成功 或者失败。
filename 表示入参InFilename ,原样返回。
English
Introduction to plugins
How to use this plugin, which supports uploading and downloading OSS on Alibaba Cloud and Huawei Cloud. The plugin source code supports all platforms and only packages Win64
Plugin effect:
By simply calling the blueprint, it is possible to download and upload large OSS files. And supports concurrent uploading.
Plugin usage:
How to use this plugin and write this article about it.
1. Create a download subsystem and obtain the entity of the download management object class:
2. Call the upload function Upload and bind an event:
Parameter Description:
InFilename represents the path to upload files locally.
Name: represents the path in the OSS bucket.
OSS represents the following structural content
Struct FOSSConfig
{
GENERATED-BODY()
UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="FOSSConfig")
FString Access KeyId; Key corresponding to OSS
UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="FOSSConfig")
FString Access KeySecret; Represents the KeySecret corresponding to OSS
UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="FOSSConfig")
FString Bucket// Bucket name
UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="FPowerData")
FString Type// Aliyun represents Alibaba Cloud and Huawei Cloud represents Huawei Cloud
UPROPERTY (EditAnywhere, BlueprintReadWrite, Category="FOSSConfig")
FString DomainName// Domain name address for OSS download
};
Description of binding event parameters:
Success indicates whether the upload was successful or failed.
The file name represents the input parameter InFile name and is returned as is.
3. Call the download function Download and bind an event:
Filename represents the path of Alibaba Cloud files.
OSS as above.
Description of binding event parameters:
Success indicates whether the upload was successful or failed.
The file name represents the input parameter InFile name and is returned as is.
如需源码请联系我。虚幻商城请搜索oss即可商城只上架win64版本。