I have two different set of types of images to be uploaded on same form.
and separate folders for each type of images.

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';