Hi,
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
XUpload - I need 2 differnt types of images & seprate folders for
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Actually it's possible to do with quick hack: in upload.cgi find
and add below it:
so when extension is jpg, target dir will be upload_dir1, if another extension, then upload_dir2
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';