Attaching file to an article

Author Message

Gavin Heaton

Tuesday 27 May 2003 10:36:36 pm

I have added a binary file field to the article form and can upload files without problem. The edited form shows the name of the file and its size and links directly to it (in this case a PDF).

However, when I look at the page on the site, I get the name of the file but it shows a size of "0 B" and when I click on the file name I receive a message saying that the "Object is not available".

Display is using the following code:
{attribute_view_gui attribute=$content_version.data_map.file_attachment}

Thanks in advance.

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 05:09:40
Script start
Timing: Jan 18 2025 05:09:40
Module start 'layout'
Timing: Jan 18 2025 05:09:40
Module start 'content'
Timing: Jan 18 2025 05:09:41
Module end 'content'
Timing: Jan 18 2025 05:09:41
Script end

Main resources:

Total runtime0.7316 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.0080 587.9063152.6250
Module start 'layout' 0.00800.0030 740.531339.4453
Module start 'content' 0.01100.7189 779.9766399.7188
Module end 'content' 0.72980.0017 1,179.69538.1641
Script end 0.7315  1,187.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5023160.0002
Check MTime0.00140.1865160.0001
Mysql Total
Database connection0.00240.325710.0024
Mysqli_queries0.692794.6801460.0151
Looping result0.00040.0540440.0000
Template Total0.693394.820.3466
Template load0.00220.298820.0011
Template processing0.691194.467420.3455
Template load and register function0.00030.044710.0003
states
state_id_array0.00260.349510.0026
state_identifier_array0.00290.391320.0014
Override
Cache load0.00170.237280.0002
Sytem overhead
Fetch class attribute can translate value0.00120.162010.0012
Fetch class attribute name0.00050.074110.0005
XML
Image XML parsing0.00020.022810.0002
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00060.0874100.0001
String conversion0.00000.003340.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs