Why do I get .txt extension eventhough it isn’t?

1 visualizzazione (ultimi 30 giorni)
Whenever I download a .mat file from this forum I get .txt extension appended at the ended. Why is it so ?
  6 Commenti
Rik
Rik il 15 Mag 2019
@Jan, for me installing Matlab after Office did the trick, since it is a file association issue (or it was in my case). This assumption made it very confusing when someone wanted to link Matlab with Access to read actual Access files.
madhan ravi
madhan ravi il 15 Mag 2019
@Rik: It was working fine until yesterday.

Accedi per commentare.

Risposta accettata

Guillaume
Guillaume il 15 Mag 2019
Modificato: Guillaume il 15 Mag 2019
That reminds me that's something I wantedto discuss with Mathworks as it's indeed annoying.
The reason has nothing to do with your OS or your file association. The behaviour will depend entirely on your browser but ultimately it's a defect in the way Answers serves these mat file.
The mat files are served with a content-type of text/plain. So, stricly speaking a browser that download these files should consider them as text files. Firefox does this and since the website tells it that the file is text, it adds a txt extension to the file. Other browsers may ignore the content-type and save it as is. Really, Answers should send this file with the correct Content-Type.
I'll try to get them to fix that.

Più risposte (0)

Tag

Prodotti


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by