I have content with mime type set as application/x-chm, which as I understand it, enable downloading of chm files.
However when I select the link which triggers the save/open file dialog the .chm file extension is not resolved and I have to explicitly add the .chm file extension for the file to be saved.
How can I get the .chm file extension to resolved automatically?
According to this official IANA document, the MIME-type for .chm files is application/vnd.ms-htmlhelp.
Side note, you never know for sure how the file is being displayed to the user, since the user can choose how to display a file themselves.
Related
I downloaded an .R file from a zoom chat on desktop to open in Rstudio later.
Well, the .R extension was not part of the name, so I changed the name to something.pdf (of course by mistake).
The icon now looks like a pdf. I replaced the .pdf with .R. But the icon still is a PDF file and Rstudio does not recognize it as an R file.
How can I can change it back to its .R format?
edit. thanks for pointing this out. I am on a windows 10 machine. and the file is on desktop.
Troubleshoot for Windows
You may be trying to add multiple file extensions, which does not allow the file to be ready correctly.
A quick google search.
How do I reveal file extensions?
For Windows 8-10
Start Windows Explorer, you can do this by opening up any folder.
Click the View menu.
Check the box next to "File name Extensions"
Then make sure you have my_file.R as opposed to my_file.R.R.pdf.
Recently I scaffolded a project with webapp generator. It created two files .gitignore and .gitattributes. Both show a file extention of type Text Document But when I press F12 to edit any one's name then it has empty name. Here is the snapshot:
My question is why don't window show the name as .gitignore?
There is nothing special with those files. This visual guide may help you.
Also in Windows 10 you may simply try this option in View Tab of Folder Explorer:
After looking and reading closer, it seems that the "problem" is that with the default settings of Explorer "known" file-name extensions (like e.g. .txt) are just not shown.
So if you name a file .txt (full file-name) then it will show up as empty and with no name.
Dot-files are not having any "extension" to their file-name. The full file-name of e.g. the Git ignore file is .gitignore.
It comes from the Unix world where file-names doesn't have to follow the DOS and Windows name.ext scheme, and means that the file is hidden.
Windows since long allows arbitrary file-names as well, but in a name.ext scheme such files doesn't have a "name" only an extension.
Windows interprets .gitignore as an empty file name with the extension "gitignore", and thus shows an empty name be default. To properly see its name, open the folder's properties and check the "Show All File Extensions" option.
I don't have an answer, but I have a preference. I'd prefer not to show all extensions just to be able to see my .gitignore files in Windows10 file explorer.
I'm hoping to extend OP's question by showing I DO SEE .babelrc and .eslintrc, and w/o seeing all file extension setting being set to "on".
It seems, on my own system, that the associations for BABELRC and ESLINT(RC|IGNORE) are, maybe, set automatically by VSCode? In any case, why can I see those "." files, while the in.json is showing with hidden extension, but I can't see .gitignore?
In Windows, I have a set of files in a folder that all have similarly formatted text content, but with different extensions based on a timestamp. For example, assume two files named data.20140424 and data.20140423 for two days. Each day brings a new file with a new extension.
Is there a way to associate all the extensions with a single program that can view the files? Do I need to have a registry entry for each extension? Is there an alternative way to associate files besides extension, like with mime type or full filename?
You need a registry entry for each file. If you're on windows, double-click the file, select the program to open it with. Make sure "use this program every time" checkbox or similar checkbox is checked. It will open and you won't need to do this again.
I'm using plain text format on text edit and I'm also storing the file as filename.conf but it always ends up getting stored as filename.conf.txt. I've even unchecked the box that says "If no extension is provided, use .txt"
TextEdit just doesn't seem to recognize .conf as an extension?
Any help with this?
Open TextEdit's Preferences, and switch to the Open and Save section. Under the When Saving a File panel, uncheck the Add '.txt' extension to plain text files option.
I would like to edit the prpt file by making the changes to the .xml files within instead of editing it in pentaho Report designer.
I used winRAR and extracted the files, made the changes to the layout.xml and tried to "Add to Archive" by changing the extension to .prpt instead of .rar. This created the report fine but when I try to open this modified report in Pentaho report designer, it gives me "Unable to open the file as valid report definition".
I also tried doing the above without making any changes to any of the xml files but that did not work either.
Please can someone suggest any other way to do this. I would really appreciate any input on this issue.
Thank you.
prpt is just zip format. Be sure to indicate WinRAR to compress as zip, not as rar.
Additionally, also pay special attention to file content. Report files need to be in the root of the zip file and the datasources and manifest have to be in their respective directories.
I think You are simply compressing the folder in zip with extension prpt . Its a wrong approach jus compress the files in the folder not the folder with prpt name and extension with prpt .
it should be zip not Rar