update filename

This commit is contained in:
2026-03-15 13:17:38 +08:00
parent f7ad51b9ec
commit 078bfd10ee
2 changed files with 3 additions and 4 deletions

View File

@@ -58,9 +58,8 @@ export interface FileContent {
* File config for customization * File config for customization
* Using SDK's type directly from AppCustomizeResponse * Using SDK's type directly from AppCustomizeResponse
* *
* IMPORTANT: The Kintone API does NOT return file names in getAppCustomize response. * FILE type response includes: { type: "FILE", file: { fileKey: string, name: string, contentType: string, size: string } }
* - FILE type: { type: "FILE", file: { fileKey: string } } * URL type response includes: { type: "URL", url: string }
* - URL type: { type: "URL", url: string }
* *
* Use getDisplayName() utility to get user-friendly display names. * Use getDisplayName() utility to get user-friendly display names.
*/ */

View File

@@ -13,7 +13,7 @@ export function getDisplayName(
} }
if (isFileResource(file)) { if (isFileResource(file)) {
return `${file.file.fileKey}.${fileType}`; return file.file.name;
} }
return `Unknown File ${index + 1}`; return `Unknown File ${index + 1}`;