I have a security question regarding the mime types.
I have a website on which users can upload videos. Prior to encoding with ffmpeg, I make a mime-type check to be sure the video file is really a video file and not a weird file or even an exec with a video file extension.
Nevertheless sometimes, mime-type aren't recognized, especially with mkv containers.
Wow, that was a quick answer, thx alot for that! Due to procrastination reasons, I'll reply equally fast Xyne wrote:@jakobThe '--prefer' option requires a MIME-type matcher. See 'mimeo --mimeman-help' for the syntax. You need to tell it exactly which MIME-types to preferentially associate with dwb.
Firefox determines which program to use to open a download based on the download's MIME type. More information on that can be found in Mozilla's online documentation.
It seems to me that when Firefox encounters a MIME type it has no configuration for, it prompts the user to open it in Gedit. Why Gedit? How can I change the default for unrecognised MIME types to gnome-open?
We have a VPS server that we host our websites on. I have written a CMS using CodeIgniter. On one of the interfaces, I am attempting to upload a css file to the system. This worked correctly when we had it hosted on shared hosting.
Not even sure how I found the reason: mime type of *.r files (plain text R scripts) got set to "application/x-extension-r". (by ~/.local/share/mime/packages/user-extension-r.xml) . I checked update logs but couldn't determine the origin of this file. Interestingly, that happened only on one of two similar installations with the same 64bit Fedora 11.
I am new to Apache. I have almost no knowledge of apache. I am using apache 2.2.11.
I have one css file and multiple .js files which i am uploading to a remote storage with a php page(PHP - 5.2.8). When i am using function mime_content_type to get the mime type of css.css file, i am getting text/plain. Same issue with .js files.
I edited my /usr/share/mime/packages/freedesktop.org.xml (with a text editor) to modify the file icon of application/x-7z-compressed mime type :
<mime-type type="application/x-7z-compressed">
<generic-icon name="package-x-generic"/>
I would like to know if there is a tool to edit this file (or to change the icon of a mime type) instead of using a text editor ?
I am looking for a way to determine file types in a folder with thousands of files. File names do not reveal much and have no extension but are different types. Specifically I am trying to determine if a file is a sqlite database.
When using 'file' command, it determines type of 2-3 files in a second.
Occasionally I will get some text file that causes Firefox to prompt me to download or open in some program. Instead, I want Firefox to display the file (it is a text file). How can this be done ... or why did they leave that ability out?
Example: http://connie.slackware.com/~alien/t...are-current.sh