if ($image ne '') { my $newFile = fileUpload('Image',250000,1,'latest_image','JPEG','.jpg',' +.jpeg') } ## image might be undef if param not provided.