i have to upload images by using classes. i have an array of file-types that are allowed, also ".jpg & .jpeg" goes in one directory while rest in other.

Thanks.