Closed timmy78 closed 9 years ago
you've got the same
'filePath' => '[[web_root]]/images/[[model]]/[[id]]/[[basename]]',
'fileUrl' => '[[base_url]]/images/[[model]]/[[id]]/[[basename]]',
but I think they should be different
The same what ? Basename should be different in each attribute because it will be replaced by his attribute image basename.
I you upload the file with the same name into different attributes, It the former will be rewritten by the later and you'll get 1 file stored instead of 3.
The 3 files have not the same name
Works nice since the update, thanks !
I made like in #1 @russianlagman But when I submit my form, there is an error :
Image file not found: C:/.../web/images/application/1/ios.jpg
The image and the thumbs of the first attribute are saved, but not for the other attributes.
My configuration :
Thanks ;)