({{, (RefLink[FileFormat, paclet:ref/FileFormat])["name"] 
attempts to determine what (RefLink[Import, paclet:ref/Import]) format could be used to import the file corresponding to "name". }})

OpenersNotesSection(Spacer1)Details

(RefLink[FileFormat, paclet:ref/FileFormat]) returns a format name of the type used by (RefLink[Import, paclet:ref/Import]).

(RefLink[FileFormat, paclet:ref/FileFormat]) uses heuristic methods, and may not give correct results, particularly for shorter files.

(RefLink[FileFormat, paclet:ref/FileFormat]) does not verify that (RefLink[Import, paclet:ref/Import]) would succeed if applied to "name".

(RefLink[FileFormat, paclet:ref/FileFormat]) gets clues from both names of files and properties of files recorded in the filesystem, but bases the final result it returns only on the actual contents of files.

(RefLink[FileFormat, paclet:ref/FileFormat])[(RefLink[File, paclet:ref/File])["name"]] is also supported.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

The (RefLink[Import, paclet:ref/Import]) format of a file:

FileFormat[$InstallationDirectory<>"/Documentation/English/System/ExampleData/ocelot.jpg"]

A format name of the type used by (RefLink[Import, paclet:ref/Import]):

FileFormat[$InstallationDirectory<>"/Documentation/English/System/ExampleData/bignum"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[FileExtension, paclet:ref/FileExtension])  ▪  (RefLink[FileConvert, paclet:ref/FileConvert])  ▪  (RefLink[StringFormat, paclet:ref/StringFormat])  ▪  (RefLink[Import, paclet:ref/Import])  ▪  (RefLink[BinaryReadList, paclet:ref/BinaryReadList])  ▪  (RefLink[FileHash, paclet:ref/FileHash])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Importing and Exporting, paclet:guide/ImportingAndExporting])}, {▪(RefLinkPlain[Internet and Computer Systems Data, paclet:guide/InternetAndWebRelatedData])}, {▪(RefLinkPlain[Cloud Functions & Deployment, paclet:guide/CloudFunctionsAndDeployment])}, {▪(RefLinkPlain[File Operations, paclet:guide/FileOperations])}})}})