Forums / Developer / How to change the md5 filenames in files?

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

eZ debug

Timing: Jan 30 2025 00:18:07
Script start
Timing: Jan 30 2025 00:18:07
Module start 'content'
Timing: Jan 30 2025 00:18:07
Module end 'content'
Timing: Jan 30 2025 00:18:07
Script end

Main resources:

Total runtime0.0186 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0625180.8203
Module start 'content' 0.00530.0053 768.882889.7422
Module end 'content' 0.01060.0079 858.625066.6875
Script end 0.0185  925.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001910.2717120.0002
Check MTime0.00105.3727120.0001
Mysql Total
Database connection0.00073.881310.0007
Mysqli_queries0.002412.973440.0006
Looping result0.00000.102720.0000
Template Total0.007640.910.0076
Template load0.00073.768310.0007
Template processing0.006937.145310.0069
Override
Cache load0.00052.708110.0005
General
dbfile0.004725.1524100.0005
String conversion0.00000.027030.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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