Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This module is an extension to media module functionality. This provides for saving the files uploaded via media module in a directory structure formed based on tokens used.

Use case

Say we have a scenario wherein we want to save the files related to a node in directory structure like node/. The example below explains the basic functionality provided.

e.g., A file

test.png

uploaded on 10/04/2012 will be saved in

sites/default/files/2012/04/10/test.png

if we set up the token path as "[current-date:custom:Y]/[current-date:custom:m]/[current-date:custom:d]"

This feature was available for filefield module through the use of tokens but,doesn't seem to be available for this media module.

Project information

  • Created by piyuesh23 on , updated