Added support for file upload and download.