This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Fix MIME type for certain files?

Tags: None
(comma "," separated)
mcaceres
Registered Member
Posts
100
Karma
0

Fix MIME type for certain files?

Fri Mar 21, 2014 7:18 pm
There are some files in my system which Dolphin informs me have MIME type "Empty Document"

The files are not empty, and it causes Dolphin to not display all the relevant information about the file (e.g. I have a jpg file without width and height info). Any idea how to debug this? Using KDE 4.12.3. Many thanks!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please provide the output of "file --mime-type" when run against one of these files?
Also, can you check the permissions of the files to verify that your user is able to read them?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mcaceres
Registered Member
Posts
100
Karma
0
Output gives the correct MIME type. While I have no idea what was the problem, cutting and pasting the files to a different directory and then back into the same directory appears to have fixed it (i.e. it displays the correct MIME type as opposed to empty document). I do not know what caused the problem and I apologize that it did not occur to me to do the cut and paste before. I did it for the few files I had showing MIME type: Empty Document and now they are all correct.

Thanks for your help!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
No problem. It is rather unusual that moving the files fixed the issue though, as mimetype determination is not cached by the system.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]