I have an RSS feed that I'm putting in the Cloud. Unfortunately, the Cloud is a disaster and can't even get the MIME-type right by default.
It gives me (note I’ve since manually changed the MIME-type so this is different):
URLRead["https://www.wolframcloud.com/objects/b3m2a1/tutorial/index/rss_feed.xml", "Headers"]~Lookup~"content-type" "application/octet-stream"
Here's what it should have given me:
URLRead["https://paclets.github.io/PacletServer/index/rss_feed.xml", "Headers"]~Lookup~"content-type" "application/xml"
Now, in my
CopyFile call I can specify the
"MIMType" explicitly (per this kludge). I can even do this semi-automatically via:
CopyFile[file, dest, "MIMEType"-> ImportExport`GetMIMEType[ ToUpperCase@StringTrim[FileExtension[file], "."] ][] ]
It'd be much nicer though if in the intervening two years something had come up to allow me to tell Mathematica what MIME-type to use for which extensions without my having to supply this manually.
Is there such a thing?