Hello:

I have created a patch to display the file name without extension and the extension of a file in filefield using Tokens.

This patch will help also to reduce the complexity of filefields paths module because this module has to "emulate" this tokens because they are not available.

I'm trying to fix this bug (#311526: Recursion error in filefield_paths). After investigate a lot I think that the most solid way to solve it is with changes in both, Filefield and Filefields Paths.

So, I would be very grateful if you plase could review and commit this patch or another better.

Thanks and sorry for my english

Comments

drewish’s picture

filefield has PHP 5.2+ as a requirement so no need for the backwards compatible code.

dagmar’s picture

StatusFileSize
new1.64 KB

Oh. Ok, here is the new patch.

Thanks

dopry’s picture

Status: Needs review » Reviewed & tested by the community

I'll commit this next time I'm working on fileifeld_token.module.

quicksketch’s picture

Status: Reviewed & tested by the community » Fixed

Dopry committed this in http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/filefield/f..., so it's already in all the latest betas.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.