Update document type to manage UploadedFile & string