diff --git a/components/upload/interface.tsx b/components/upload/interface.tsx index d744e1b5ae..c220f76223 100755 --- a/components/upload/interface.tsx +++ b/components/upload/interface.tsx @@ -58,7 +58,7 @@ export interface UploadProps { name?: string; defaultFileList?: Array; fileList?: Array; - action?: string | ((file: UploadFile) => PromiseLike); + action?: string | ((file: UploadFile) => string) | ((file: UploadFile) => PromiseLike); directory?: boolean; data?: Object | ((file: UploadFile) => any); headers?: HttpRequestHeader;