Thursday 04 September 2008 4:42:24 pm
Hi folks,
ez 4.0.1rc2
PHP 5.2.5 Linux Can anyone tell me why I might have 2 different locations for image storage? Have I stuffed something up?
* ezpublish/var/ezwebin_site/storage/images * ezpublish/var/ezwebin_site/storage/images/media/images Images uploded via WebDAV or the GUI seem to be placed in the latter now. What's the deal with the two locations? I guess I'd have thought the latter would only exist, not the former? Also, I'm not sure this is a bug but in my siteaccess/my_site/image.ini.append.php file I have set all the entries using "NamePattern=<original_filename>" for example:
[image_ClassSettings]
FileAttribute=image
NameAttribute=name
NamePattern=<original_filename>
But when uploading 'my_image.jpg' for example via WebDAV or via the GUI, the image is named 'my_image.jpg.jpg' and if I upload it again, another copy is created in a new directory in var/ezwebin_site/storage/images/media/images/ called 'my_image.jpg2.jpg'. This is not what I'd expect, I'd expect the following to happen:
1). for a single folder to be called: 'my_image' with all the different sizes underneath. 2). newly uploaded versions of the same image - 'my_image' for example ('Same' = identical filename and mime-type), would simply replace all those existing versions under the directory 'my_image' and not a whole new folder created called 'my_image2'. Does this not have the potential to make for a horrid mass of directories if there were any more than a few versions of say 100 stock images, not to mention an unecessarily bloated filesystem? Is there some config option I have missed that can simplify my folder structure and/or ensure only one of the two directories under 'var' are only used from now on? Sorry for all the questions, I hope someone can shed some light on my situation! :-)
Thanks a lot :-) Russ
Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom
Believe nothing, consider everything.
|