I have two different set of types of images to be uploaded on same form.
and separate folders for each type of images.
![Question :?:](https://sibsoft.net/forum/images/smilies/icon_question.gif)
thanks
Vinay
Code: Select all
my ($fn,$ext) = $filename=~/^(.+)\.(.+)$/;
Code: Select all
$c->{target_dir} = lc($ext) eq 'jpg' ? '/full/path/upload_dir1' : '/full/path/upload_dir2';