update filename
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -13,7 +13,7 @@ export function getDisplayName(
|
||||
}
|
||||
|
||||
if (isFileResource(file)) {
|
||||
return `${file.file.fileKey}.${fileType}`;
|
||||
return file.file.name;
|
||||
}
|
||||
|
||||
return `Unknown File ${index + 1}`;
|
||||
|
||||
Reference in New Issue
Block a user