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.

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.

Sandbox link :
http://drupal.org/sandbox/piyuesh23/1525142

GIT Clone :
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/piyuesh23/1525142.git media_path_tokens

Reviews of Other Projects:

Comments

klausi’s picture

Status: Needs review » Postponed (maintainer needs more info)

Please open an issue in the media module issue queue if this should be included in media core in the first place. Module fragmentation is a huge problem on drupal.org and we prefer collaboration over competition. So please get in touch with the media maintainers and reference the issue here.

If that fails for whatever reason please get back to us and set this back to "needs review".

klausi’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.

piyuesh23’s picture

Title: Media Dripath » Media Dirpath
Issue summary: View changes
piyuesh23’s picture

Title: Media Dirpath » [D7] Media Path Tokens
Issue summary: View changes
Status: Closed (won't fix) » Needs review
Issue tags: +PAreview: review bonus

@klausi,

Apologies for re-opening this issue so late.

There was already a feature request for this support in the issue queue for media module (https://drupal.org/node/1174802). However, due to no full support of field tokens, this cannot go into media module right now. Also, there has been no work on that issue since long. This module provides a very generic functionality that would be required for any projects using media module. Hence, i am reopening this issue.

deepakaryan1988’s picture

@Piyuesh,
It's a pretty good module. But I believe you need to delete master branch and make separate 7.x-1.x branch for it.

deepakaryan1988’s picture

Status: Needs review » Needs work
piyuesh23’s picture

Status: Needs work » Needs review

@deepakaryan1988, Thanks for noticing. Removed master branch.

piyuesh23’s picture

Issue summary: View changes
piyuesh23’s picture

Status: Needs review » Closed (won't fix)

Closing this as this feature has been moved as a part of multimedia widget using file field.

dipen chaudhary’s picture

@piyuesh23,

Would be nice if you update the sandbox project with the this information. So that people looking for this starts using multimedia widget.