About uploaded files

Author Message

Franck T.

Monday 08 December 2008 6:27:45 am

Hi there,

All uploaded files are stored in var\mysite\storage\original but they are renamed.
My question is how to retrieve them from this folder with their <b>original name</b> (I'd like to make a back up) ?
Please, don't tell me I'll have to download and rename them all !!!

Ivo Lukac

Monday 08 December 2008 7:10:42 am

Hello Franck,

If it helps 'content/download' view offers original file name when downloading.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Franck T.

Monday 08 December 2008 8:31:37 am

Hum... sorry I don't understand what you mean ...
I have around 250 files to back up and it would be great if i could download them all in one time from the admin interface or from Windows (server-side) with their original names !

Ivo Lukac

Monday 08 December 2008 9:07:16 am

Basicly you have 2 ways:
- to write a PHP-cli script which uses API to get files (harder)
- make a template for special page which fetches all file objects and makes links to files with content/download/.... and than use some spider software (like wget) to collect files using that list with links (easier )

Maybe someone already had same problem and made some of that stuff...

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Noicokuna Niemoge

Thursday 22 January 2009 11:58:51 pm

Why there are so many problems with a simple task like file uploading/downloading? o_O Shouldn't it be there in eZ by default? I'm more and more disappointed.

Shiki soku ze ku...

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 31 2025 01:28:55
Script start
Timing: Jan 31 2025 01:28:55
Module start 'layout'
Timing: Jan 31 2025 01:28:55
Module start 'content'
Timing: Jan 31 2025 01:28:55
Module end 'content'
Timing: Jan 31 2025 01:28:55
Script end

Main resources:

Total runtime0.0230 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0078151.1953
Module start 'layout' 0.00500.0040 739.2031220.6719
Module start 'content' 0.00910.0126 959.87501,001.7422
Module end 'content' 0.02170.0013 1,961.617233.9922
Script end 0.0230  1,995.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.5431140.0002
Check MTime0.00104.4060140.0001
Mysql Total
Database connection0.00073.233810.0007
Mysqli_queries0.002310.138730.0008
Looping result0.00000.052910.0000
Template Total0.00094.010.0009
Template load0.00073.013010.0007
Template processing0.00020.970110.0002
Override
Cache load0.00052.021110.0005
General
dbfile0.00031.498780.0000
String conversion0.00000.024940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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