HI ALL,
I found other method to do it !!!
in "onaddfile" formula is
If(
Last(
Split(
Last(
Self.Attachments).Name,
".")
)
.Result <> "csv",
Notify(
"File must be csv format !!!!"
);
)

And in the submit button , the formula like this .....so even user upload wrong format file ,they still not upload file to my sharepoint list , and they need manual remove the wrong format file .
ForAll(
DataCardValue2.Attachments,
If(
Last(
Split(
Name,
"."
)
).Result <> "csv",
Notify("Some files are not csv format , please check it ",NotificationType.Error),
Notify("BBB")
)
)

the result page like this
