Added initial support for file uploads.