The pathed files module allows permissioned users to manage miscellaneous files that can be accessible from any path in the website.

Use case

You need to add a file to your site root named verify.xml for search engine ownership verification.

Normally you would have to take the file and place it into your Drupal core root. Then version control the file by adding code to your Drupal core repository, which is not ideal.

Pathed files allows you to instead create and maintain the file from within Drupal, instead of cluttering up your core code base.

This is especially helpful when there are other people that provide these various static files to you, as they can now upload and maintain the files themselves.

How to use

  1. Navigate to the admin page at: Admin > Content > Files > Pathed files
  2. To create a new file, click New pathed file button.
  3. Define the file's path (as well as a name and description for internal organization) and whether you want to upload the file (for a binary file like image or PDF) or manually enter its contents (for a plain text file).
  4. Save

Dependencies

None

Versions

7.x-1.x

This branch supports migrating from raw_pages. When you do migrate, you may get warnings from File module. These warnings are triggered because the pathed_file creation form is programmatically called instead of being submitted by a user in a browser. The underlying cause is yet un-fixed in Drupal core.

Created by the Bonnier Engineering Group. Learn more about Bonnier Corporation at bonniercorp.com.

Project information

Releases