CUploadedFile->saveAs()

if the file param is a directory, it should save the original filename within that path