[Yujun] Added support for file upload.