use inputstream api to upload files, fix assign params