v7.8.3 on Linux, with a Linux web client.
When I upload 'file.sh' (a text shell script) to an attachments page, the mime type is set to "application/octet-stream" and the file cannot be previewed. If I change the mime type to "text/plain" and rename the file to 'file.txt' I still cannot preview it.
Conversely if I upload 'file.txt' (the same file) the mime type is set to 'text/plain' and I can preview it, even if I rename the file and change the mime type.
The old mime type appears to be preserved somewhere for the life of the file, and it is that type that controls the preview-ability of the file. Is there a way to reset this type so that the file can be previewed?