Skip to content

Commit 48ea246

Browse files
committed
fix: not give name if parsedFile is not a object
1 parent 0877d66 commit 48ea246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AjaxUploader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class AjaxUploader extends Component<UploadProps> {
166166
: file;
167167

168168
// Used for `request.ts` get form data name
169-
if (!(parsedFile as any).name) {
169+
if (typeof parsedFile === 'object' && !(parsedFile as any).name) {
170170
(parsedFile as any).name = file.name;
171171
}
172172

0 commit comments

Comments
 (0)