tencent cloud

Smart Media Hosting

Check File Status

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-07 10:49:07

Introduction

This document provides an API overview about checking file state and SDK sample code.
API
Operation Description
Check file status

SDK API Reference

For specific parameters and method descriptions of all SDK APIs, please see SDK API Reference.

Checking File Status

Feature Description

Check file status.

Sample Code

QCloudSMHHeadFileRequest * request = [QCloudSMHHeadFileRequest new];
// Space ID; if the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameter
requeset.spaceId = @"spaceId";
// Media Library ID, required parameter
requeset.libraryId = @"libraryId";
// Complete file path, for example /api/v1/file/smhxxx/-/foo/bar/file.docx
request.filePath = @"filePath";
// Earlier version ID, used to obtain file content of different versions, optional parameter, defaults to the latest version;
request.historyId = @"historyId";
[request setFinishBlock:^(id _Nullable outputObject, NSError * _Nullable error) {

}];
[[QCloudSMHService defaultSMHService] headFile:request];


Ajuda e Suporte

Esta página foi útil?

comentários