Fix adding trail alias
Detect mimes types in extension check