What is the purpose of the function parameter filetype?

What is the purpose of the function parameter filetype? Correct Answer File type to be expected

The File.type property is an inbuilt function of File WebAPI which gives the media type (MIME) of the file represented by a file object. The function parameter “filetype” lets you tell the script what file type to expect before loading.

Related Questions

What is the purpose of getting the parameter block?
What is the purpose of the radix parameter in the parseInt() method?
What is the purpose of the parameter $name ?
What is the purpose of the parameter $value?
What is the purpose of the parameter location?
What will happen if the radix parameter of the parseInt() function is omitted?
What will the function session_id() return is no parameter is passed?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
It is not the purpose of philosophy to try to solve our social, economic, and political problems; but it is its purpose to think carefully and systematically about certain fundamental questions which concerns ourselves, our conduct, and the world in which we live- এই বক্তব্যে দার্শনিক লক্ষ্যের ইঙ্গিত রয়েছে;
What is the purpose of a return statement in a function?