Long path to uploaded image (more 256 chars)

Author Message

Stan Cheredov

Tuesday 05 December 2006 5:32:52 am

I ran ez under Windows. This OS cannot create path to file more 256 chars. ( MAX_PATH = 260). When i upload image, path to it is - http://some-site/var/plain_site/storage/images/produkciya/kombinirovannye_materialy_na_osnove_plenok_i_alyuminievoj_fol_gi_polifleny/kombinirovannye_materialy_na_osnove_plenok_i_alyuminievoj_fol_gi_polifleny/275-3-rus-RU/kombinirovannye_materialy_na_osnove_plenok_i_alyuminievoj_fol_gi_polifleny_medium.jpg and OS cannot create image, becouse the path is very long! Can i setup ez to create small path to image ? For example by page id...
http://some-site/var/plain_site/storage/images/237/275-3-rus-RU/ where 237 is object id.

I think that very long file name is a bug ....

Piotr Switkowski

Wednesday 06 December 2006 3:23:20 pm

The length of file path or directory/file name is problem not only under Windows. I have similar problem under Unix. So please ezPublish crew develop solution to this. Maybe using hash instead of full path to image?

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 00:23:32
Script start
Timing: Jan 31 2025 00:23:32
Module start 'layout'
Timing: Jan 31 2025 00:23:32
Module start 'content'
Timing: Jan 31 2025 00:23:32
Module end 'content'
Timing: Jan 31 2025 00:23:32
Script end

Main resources:

Total runtime0.0209 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0038 588.2656151.2266
Module start 'layout' 0.00380.0034 739.4922220.7188
Module start 'content' 0.00710.0124 960.2109997.7266
Module end 'content' 0.01960.0014 1,957.937529.9922
Script end 0.0209  1,987.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002311.0080140.0002
Check MTime0.00094.4232140.0001
Mysql Total
Database connection0.00062.845610.0006
Mysqli_queries0.00198.903430.0006
Looping result0.00000.043310.0000
Template Total0.00104.610.0010
Template load0.00083.748310.0008
Template processing0.00020.826410.0002
Override
Cache load0.00052.377810.0005
General
dbfile0.00115.395380.0001
String conversion0.00000.033040.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