Control over generating file names just like it is done for file paths

zyxware - December 12, 2008 - 05:47
Project:Upload path
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:zyxware
Status:needs review
Description

Hello

I am currently using your Upload Path module for a drupal project that I am doing. And as a part of the requirements I need to control the file names generated just like the path names are generated currently.

I was thinking of implementing this as patch in your current module since it will give me greater control on the the names of the files which are uploaded,

As of now there is only a cleaning file name option and a patch that enhances this functionality, but does not allow you to control the file name for a particular pattern.

So I wanted to do this as a patch in your modules since the feature is closely related to this module rather than a separate module.

What are you thoughts on this shall I go ahead with this?

Regards
Zyxware

#1

zyxware - December 12, 2008 - 05:49

Link to the file names cleaning patch http://drupal.org/node/309853

#2

davidwhthomas - December 12, 2008 - 05:56

Hi,

I would be interested in a patch that adds token support to the filename as well as the filepath.

At the moment, only the path uses tokens but if you could make a patch that uses tokens for 'clean filenames' I would consider committing it to the module.

DT

#3

zyxware - December 12, 2008 - 06:24
Assigned to:Anonymous» zyxware

Sure DT, I get to work on it right away

#4

zyxware - December 12, 2008 - 12:56
Status:active» needs review

Hello DT

Here is the quick patch that I made sometime back, I have done some quick testing and things seem to be going fine.

I have attached the following files as a part of this change.

2 Patch files
1 Readme
1 Screen shot of the changes in the Admin Section

There is a small conflict with Miscellaneous options "cleaning file names" since it also tries to rename files. Only one of them should be active at any given point of time.

Let me know of the progress.

Regards
Zyxware

AttachmentSize
uploadpath.admin_.inc_.patch 3.17 KB
uploadpath.module.patch 1.68 KB
README.txt 168 bytes
changes.png 52.36 KB

#5

davidwhthomas - December 13, 2008 - 00:09

Hi, thanks for the patch!

It looks good at a glance, I'll test it out more thoroughly and get back to you, looking good so far.

cheers,

DT

 
 

Drupal is a registered trademark of Dries Buytaert.