Redetect mime type whenever extension is renamed

:no_entry: 

Partial fix for #6987

@icewind1991 please have a look.

I need to find a way to tell the client side to refresh the current file. Currently, the user must refresh the file list for the file actions to update themselves (and the preview icon)