Added support for upload single file and multiple files