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
* Using SDK's type directly from AppCustomizeResponse
*
* IMPORTANT: The Kintone API does NOT return file names in getAppCustomize response.
* - FILE type: { type: "FILE", file: { fileKey: string } }
* - URL type: { type: "URL", url: string }
* FILE type response includes: { type: "FILE", file: { fileKey: string, name: string, contentType: string, size: string } }
* URL type response includes: { type: "URL", url: string }
*
* Use getDisplayName() utility to get user-friendly display names.
*/

View File

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