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?
<stepping up on soapbox>
Please put content into Confluence pages. Confluence is not a file repository.
<stepping off of soapbox>
If your intent is to view the contents of the file, it'd be a whole lot nicer to just copy and paste the contents into a Code Block macro. There you can do things like specify the language, add line numbers, make it collapsible, and name the thing.
If you must, you can also upload the file to have a copy of it.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.