I am receiving a file in this format
file_content: Vec<u8> = [104, 111, 108, 97, 10 ....]
I want to save the files that meet a rule in the mime/type
The solutions I found is to save first and then extract the mime/type
.
Is it possible to extract the mime type before saving it?