So, i need to generate files (based and knowing only file extensions) and set correct mimetypes...
Let's say i have filetypes.txt, with something like that:
ac3 aob ape apl ay dat dff dsf dmp dts dtshd dtsma dtswav gbs gym hes iso kss mac mlp nsf nsfe rsn sap sfm sgc spc syx tak truehd tta vgm vgmtz vgz
then i can generate dummy files with something like that:
cat filetypes.txt | while read ext; do touch "test.$ext"; done
But how to deal with mimetypes?
P.S. I care only about more or less valid dummy files, actual content i don't need.