Controlling the downloaded file name

Author Message

Deane Barker

Sunday 05 August 2007 8:12:24 pm

Is there any way to control the filename of a stored file? When users download whitepapers, they get this huge, long GUID file name on their desktop.

This file is in a File datatype in a larger content class.

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 15:01:41
Script start
Timing: Jan 18 2025 15:01:41
Module start 'layout'
Timing: Jan 18 2025 15:01:41
Module start 'content'
Timing: Jan 18 2025 15:01:42
Module end 'content'
Timing: Jan 18 2025 15:01:42
Script end

Main resources:

Total runtime1.1006 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.9141152.6250
Module start 'layout' 0.00540.0026 740.539139.4609
Module start 'content' 0.00801.0911 780.0000431.3594
Module end 'content' 1.09920.0014 1,211.35948.1563
Script end 1.1005  1,219.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2761160.0002
Check MTime0.00130.1159160.0001
Mysql Total
Database connection0.00070.061410.0007
Mysqli_queries1.062096.4908460.0231
Looping result0.00070.0634440.0000
Template Total1.062396.520.5312
Template load0.00200.181120.0010
Template processing1.060396.340420.5302
Template load and register function0.00010.009110.0001
states
state_id_array0.00150.139110.0015
state_identifier_array0.00420.385520.0021
Override
Cache load0.00160.143760.0003
Sytem overhead
Fetch class attribute can translate value0.00100.088410.0010
Fetch class attribute name0.00110.098820.0005
XML
Image XML parsing0.00050.043310.0005
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00160.1491160.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs