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.