We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onSuccess
Upload
2.70.2
The type of file in Upload is File
file
File
but it has an additional uid prop when I check in Chrome console
uid
I found this uid helpful for developing, but it has a problem in code:
const handleOnSuccess = (responseBody: ApiResponseType<FileType>, file: File, fileList: Array<FileItem>) => { const fileId = responseBody.data.id; const index = fileList.findIndex(fileItem => fileItem.uid === file.uid); fileList[index].uid = fileId.toString(); };
Property 'uid' does not exist on type 'File'.ts(2339)
Maybe it should be modified as file: File & {uid: string}?
file: File & {uid: string}
- OS: macOS 15.2 (24C101) - browser: Chrome 131.0.6778.205 arm64
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
Which Component
Upload
Semi Version
2.70.2
Current Behavior
The type of
file
inUpload
isFile
but it has an additional
uid
prop when I check in Chrome consoleI found this
uid
helpful for developing, but it has a problem in code:Expected Behavior
Maybe it should be modified as
file: File & {uid: string}
?Environment
The text was updated successfully, but these errors were encountered: