Change default mimetype detection for storage backends to only use filename

This speeds up mimetype detection for external storages in some cases.

cc @karlitschek @DeepDiver1975