Top "File-type" questions

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

How can I determine a file's true extension/type programmatically?

I am working on a script that will process user uploads to the server, and as an added layer of …

php security file-upload file-type
How can I tell if an extensionless image is png or jpeg

A while ago I saved some images generated by a web service so the file names are e.g 'ysauyft87…

image shell file-type
Grails file upload - how to recognize file and/or content type?

I'm a Grails beginner, so please be patient with me. Currently I'm having hard times manipulating file uploads. As far …

grails file-upload content-type file-type
How to import .C3D files into Blender?

I'm trying to import Motion Capture files of extension .C3D . I found that Blender only supports .bvh files for …

animation import blender file-type motion
Appending the file type to a file in Java using JFileChooser

I'm trying to save an image using a JFileChooser. I only want the user to be able to save the …

java jfilechooser file-type
Alternative to locking file type on FileReference.save() AS3

Update: As discussed in Jacob's reply below, limiting or correcting the behaviour of FileReference.save isn't possible. Can anyone suggest …

flash actionscript-3 save filereference file-type
Multiple file types in vim

When I am working on a PHP file for example the default filetype is php. This makes sense, however when …

vim file-type
Best way to recognize a filetype in php

What's the best way to discover a file's filetype within php? I heard that the browser may be tricked, so …

php file-type
VIM: set filetype=txt for every new file [No Name]

I tried all possible things to let vim set filetype to 'txt' to all new files I create (in a …

vim default new-operator file-type