Top "File-type" questions

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

How to accurately determine mime data from a file?

I'm adding some functionality to a program so that I can accurately determine the files type by reading the MIME …

java mime-types file-type
How to detect the uploaded file type in angularJS

I have an form to upload only image file using angularJS. Uploading the file is all working fine. The problem …

angularjs file-type
Register a new file type in Android

I want to write a simple STL (geometrical data file) viewer application on Android, but I'm not able to make …

android file-type
java library to find the mime type from file content

I am searching for a java library which tells you the mime type by looking at the file content(byte …

java mime file-type
difference between text file and binary file

Why should we distinguish between text file and binary files when transmitting them? Why there are some channels designed only …

text-files binaryfiles file-type
What are the Google Apps MIME Types in Google Docs and Google Drive?

What are the MIME types for each of the following file extensions: gdoc gslide gsheet gdraw

mime-types google-docs file-type google-drive-api
s3 direct upload restricting file size and type

A newbie question but I have googled abit and can't seem to find any solution. I want to allow users …

php amazon-s3 filesize file-type
How to get magic number of a binary file

There is a magic number associated with each binary file , does anyone know how to retrieve this information from the …

unix file-type magic-numbers
How do I determine the extension(s) associated with a MIME type in PHP?

Is there a quick and dirty mapping of MIME types to extensions in PHP that I can make use of?

php mime mime-types filenames file-type
How to use the xdg-mime command

Can someone provide example on how to use (with GNOME Ubuntu) the XDG-MIME command? I'm struggling to get anything working …

linux ubuntu installation mime file-type