Top "File-type" questions

The type of a file, as characterized by the format of the data it contains, or its use case.

Determine file type in Ruby

How does one reliably determine a file's type? File extension analysis is not acceptable. There must be a rubyesque tool …

ruby content-type mime-types file-type
Where does Windows store its "Open With" settings?

I'm trying to programmatically check file associations by the file extension (for example .jnlp files). I keep reading that HKEY_…

windows registry file-extension file-type
Deny access to specific file types in specific directory

For some application, users are able to upload their own files. Since this can be very large files, they are …

file .htaccess directory file-type
How can I only allow certain filetypes on upload in php?

I'm making a page where the user upload a file. I want an if statement to create an $error variable …

php upload file-type
svn diff: file marked as binary type

I'm doing an svn diff on one of my files and svn is detecting it as a binary type. The …

svn file-type
How do I get common file type icons in C#?

As seen in This SO question on getting icons for common file types, it's quite possible for a windows program …

c# .net windows icons file-type
Using the linux 'file' command to determine type (ie. image, audio, or video)

The word file here refers to the shell file command, and not actual files. I want to determine whether a …

bash shell file-type
In Node.js, reading a directory of .html files and searching for element attributes inside them?

I can't even begin to think about how this would be done. Basically, imagine a folder and it has a …

javascript html file node.js file-type
validate file size before upload for input type=file using angularjs

I have an input type=file element in my form. I want to create a custom directive for checking the …

javascript angularjs angularjs-directive file-type
Disable all auto indentation in vim

In TeX vim usually screws up my indentation. Mainly when I'm in a displayed equation which I think should look …

vim indentation file-type