Forums / Install & configuration / Static URLs for Download Files

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

eZ debug

Timing: Jan 18 2025 10:32:16
Script start
Timing: Jan 18 2025 10:32:16
Module start 'content'
Timing: Jan 18 2025 10:32:16
Module end 'content'
Timing: Jan 18 2025 10:32:16
Script end

Main resources:

Total runtime0.0191 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.0066 587.8281180.8281
Module start 'content' 0.00660.0066 768.656393.9141
Module end 'content' 0.01310.0059 862.570370.7031
Script end 0.0190  933.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002311.7941120.0002
Check MTime0.00115.7766120.0001
Mysql Total
Database connection0.00105.015210.0010
Mysqli_queries0.002814.689940.0007
Looping result0.00000.109820.0000
Template Total0.005528.710.0055
Template load0.00084.356210.0008
Template processing0.004624.266110.0046
Override
Cache load0.00063.015610.0006
General
dbfile0.00158.0820100.0002
String conversion0.00000.158530.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