Added support for uploads.