added functionality to upload file content.