Skip to main content
x

About

The File module allows you to create fields that contain files. See the Field module help and the Field UI help pages for general information on fields and how to create and manage them. For more information, see the online documentation for the File module.

Uses

Managing and displaying file fields
The settings and the display of the file field can be configured separately. See the Field UI help for more information on how to manage fields and their display.
Allowing file extensions
In the field settings, you can define the allowed file extensions (for example pdf docx psd) for the files that will be uploaded with the file field.
Storing files
Uploaded files can either be stored as public or private, depending on the File system settings. For more information, see the System module help page.
Restricting the maximum file size
The maximum file size that users can upload is limited by PHP settings of the server, but you can restrict by entering the desired value as the Maximum upload size setting. The maximum file size is automatically displayed to users in the help text of the file field.
Displaying files and descriptions
In the field settings, you can allow users to toggle whether individual files are displayed. In the display settings, you can then choose one of the following formats:
  • Generic file displays links to the files and adds icons that symbolize the file extensions. If descriptions are enabled and have been submitted, then the description is displayed instead of the file name.
  • URL to file displays the full path to the file as plain text.
  • Table of files lists links to the files and the file sizes in a table.
  • RSS enclosure only displays the first file, and only in a RSS feed, formatted according to the RSS 2.0 syntax for enclosures.
A file can still be linked to directly by its URI even if it is not displayed.