How to change the md5 filenames in files?

Author Message

John Cena

Friday 08 April 2011 2:02:37 am

Hi,

I need change the filenames on the files/images that are being upload. Instead of having a filename like "8824a9402b84cf08650817480e766aec.JPG" I need to store the image with a filename like "01_02_2011__001205_8824a9402b84cf08650817480e766aec.JPG".

I have been searching but I can't find the portion of the code that does this. I don't need to develop a new extension by now. I just need to simple hack the code to do some tests.

What files should I edit to achieve this?

Best Regards,

PS: This is solved, you can delete the post

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:34:25
Script start
Timing: Jan 18 2025 10:34:25
Module start 'layout'
Timing: Jan 18 2025 10:34:25
Module start 'content'
Timing: Jan 18 2025 10:34:25
Module end 'content'
Timing: Jan 18 2025 10:34:25
Script end

Main resources:

Total runtime0.0189 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.4141153.4688
Module start 'layout' 0.00660.0036 742.882839.4297
Module start 'content' 0.01020.0062 782.312585.5859
Module end 'content' 0.01640.0024 867.898430.2891
Script end 0.0189  898.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.7280140.0002
Check MTime0.00126.1756140.0001
Mysql Total
Database connection0.00094.598610.0009
Mysqli_queries0.002613.731330.0009
Looping result0.00000.069410.0000
Template Total0.00189.710.0018
Template load0.00105.042610.0010
Template processing0.00094.620010.0009
Override
Cache load0.00073.465610.0007
General
dbfile0.00031.527880.0000
String conversion0.00000.036640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs