Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

Media file names

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


adam at RFXTechnologies

Mar 31, 2009, 2:46 PM

Post #1 of 3 (919 views)
Permalink
Media file names

Is there a way to specify that the system should use something other than the local file name of an uploaded document when creating/updating media?

I would like to be able to specify that the system use the title of a media asset for the filename when the asset is published for 2 reasons.

1. Better control over file names, especially if I can translate the title to something appropriate (lowercase, no special characters).

2. Every time a user updates a media asset with a file on their computer, and the name of the file on their computer is different than the previous version, the name of the asset on the file system changes.


Even better, if this is possible, would be able to also use Media Type and Source within the file name.

Thanx in advance,
Adam Wilson


phillip at communitybandwidth

Apr 1, 2009, 8:39 PM

Post #2 of 3 (848 views)
Permalink
Re: Media file names [In reply to]

On 31-Mar-09, at 6:46 PM, Adam Wilson wrote:

> 1. Better control over file names, especially if I can
> translate the title to something appropriate (lowercase, no special
> characters).

Have you looked at the MEDIA_UNIQUE_FILENAME configuration directive?

# MEDIA_UNIQUE_FILENAME tells Bricolage to assign system-wide unique
names to
# media files. When this directive is enabled Bricolage will generate
a unique
# eight-character MD5 hash for the file name instead of the file name as
# uploaded. The file name suffix will be retained as it was loaded.

--
Phillip Smith // Simplifier of Technology // COMMUNITY BANDWIDTH
www.communitybandwidth.ca // www.phillipadsmith.com


paulo at digitalcraftsmen

Apr 7, 2009, 12:11 AM

Post #3 of 3 (815 views)
Permalink
Re: Media file names [In reply to]

Phillip Smith wrote:
>
> On 31-Mar-09, at 6:46 PM, Adam Wilson wrote:
>
>> 1. Better control over file names, especially if I can translate
>> the title to something appropriate (lowercase, no special characters).
>
> Have you looked at the MEDIA_UNIQUE_FILENAME configuration directive?

The additional controls you want should be quite easy. Have a grep through
the code under lib for MEDIA_UNIQUE_FILENAME and you'll find where the
filename gets set on upload. You should then be able to add in the source
and other fields that you want.

regards,

Paul

--
Paul Orrock Digital Craftsmen
Lead SysAdmin www.digitalcraftsmen.net
Exmouth House, 3 Pine Street, London, EC1R 0JH
Tel: 020 7183 1410 Fax: 020 7099 5140

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.