milesj/cake-uploader — Issue #41: subfolders for image transform
Author: paoloiulita
Created: 2012-02-23 13:23:18+00:00
State: open

This is most a feature req
It seems not possible to have transformed images put in subfolders. :(
it would be amazing if in the db the column gets populated with only the uploaded file name (instead the path) and derived images are put in sudfolders.
i.e. with this configuration

'transforms'=> array(
array( 'method' => 'resize', 'width' => 40, 'height' => 40, 'folder' => 'thumb' ),
array( 'method' => 'resize', 'width' => 15, 'height' => 15, 'folder' => 'list-thumb' )
)

results are:

db column content: image.png

filesystem:

--uploads
image.png
--thumb
image.png
--list-thumb
image.png

it may be optional a method to retrieve files directly from the model

this results in a more structured file system, and avoid repetition in the database

what do you think about? would it be an overwhelming update? maybe a sort of teamwork can be done with that. i assume that with this update the plugin can become THE uploader plugin for cake :)