Ask Your Question
4

What does the error "The argument type 'File?' cannot be used as the parameter type 'File'" mean?

asked 2021-11-22 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-10-18 17:00:00 +0000

djk gravatar image

The error means that you are trying to pass a nullable file (File?) as an argument to a method or function that expects a non-nullable file (File). The types are not compatible and need to be either both nullable or both non-nullable.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-11-22 11:00:00 +0000

Seen: 3 times

Last updated: Oct 18 '22