update filename
This commit is contained in:
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user