跳到主要内容

upload_or_update_file

上传或更新文件,操作对象为存储桶

声明

FileUploadResponse upload_or_update_file(string relative_path, mixed data, bool update, FileOptions option = nil)

参数

参数名描述
relative_path文件路径,包含文件名。格式应为 folder/subfolder/filename.png
data文件数据
update是否为更新操作
option文件选项

返回值

FileUploadResponse 文件上传响应

使用方式

返回文档