Static URLs for Download Files

Author Message

Andreas Tremel

Monday 19 October 2009 9:26:26 am

Hello,

I've seen two versions of file links on ez.no:

Versioned (repository-style):
*/content/download/207803/1372177/file/some_file.txt

And static:
*/content/download/some_file_static.txt

I want to update files and don't want to change their URL.

How can the latter be done?

Cheers,

Andreas

Gaetano Giunta

Monday 19 October 2009 9:54:14 am

Actually */content/download/207803/1372177 should be both sufficient and unchanging...

btw, are you asking about creating these urls on your eZP site or just about uploading stuff to ez.no?

Principal Consultant International Business
Member of the Community Project Board

Andreas Tremel

Monday 19 October 2009 10:19:46 am

On my EZP site!

I agree with you - the URL will always work. But as soon as I update the file in the admin backend, the system will create a new URL in the frontend. I want an unchanging URL, so that only the latest version of the file can be downloaded.

Regards,
Andreas

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:02:48
Script start
Timing: Jan 18 2025 15:02:48
Module start 'layout'
Timing: Jan 18 2025 15:02:48
Module start 'content'
Timing: Jan 18 2025 15:02:49
Module end 'content'
Timing: Jan 18 2025 15:02:49
Script end

Main resources:

Total runtime1.2930 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1484152.6406
Module start 'layout' 0.00510.0028 741.789139.4766
Module start 'content' 0.00791.2835 781.2656532.9609
Module end 'content' 1.29140.0016 1,314.22668.1484
Script end 1.2930  1,322.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2431160.0002
Check MTime0.00140.1068160.0001
Mysql Total
Database connection0.00070.051310.0007
Mysqli_queries1.246196.3727570.0219
Looping result0.00050.0407550.0000
Template Total1.263897.720.6319
Template load0.00200.157220.0010
Template processing1.261697.570720.6308
Template load and register function0.00020.017310.0002
states
state_id_array0.00080.060610.0008
state_identifier_array0.00110.081820.0005
Override
Cache load0.00170.1339220.0001
Sytem overhead
Fetch class attribute can translate value0.00080.064420.0004
Fetch class attribute name0.00110.088840.0003
XML
Image XML parsing0.00060.047620.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00100.0809160.0001
String conversion0.00000.000640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs