oauth template
add from file mode to document retriever