54 lines
1.6 KiB
HTML
54 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Ingest</title>
|
|
</head>
|
|
<body>
|
|
<h1>Ingest</h1>
|
|
|
|
<p><a href="/documents/">View documents</a></p>
|
|
|
|
<h2>Inbox ingest</h2>
|
|
<p>Configured inbox: {{ inbox_root }}</p>
|
|
<form method="post" action="/ingest/inbox">
|
|
<button type="submit">Run inbox ingest</button>
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<h2>Server-side ingest</h2>
|
|
|
|
<h3>Ingest one server file</h3>
|
|
<form method="post" action="/ingest/server-file">
|
|
<label for="file_path">Server file path:</label><br>
|
|
<input id="file_path" name="file_path" type="text" size="120" required>
|
|
<br><br>
|
|
<button type="submit">Ingest server file</button>
|
|
</form>
|
|
|
|
<h3>Ingest one server directory</h3>
|
|
<form method="post" action="/ingest/server-directory">
|
|
<label for="directory_path">Server directory path:</label><br>
|
|
<input id="directory_path" name="directory_path" type="text" size="120" required>
|
|
<br><br>
|
|
<label>
|
|
<input type="checkbox" name="recursive" checked>
|
|
Recursive
|
|
</label>
|
|
<br><br>
|
|
<button type="submit">Ingest server directory</button>
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<h2>Upload ingest</h2>
|
|
<form method="post" action="/ingest/upload-files" enctype="multipart/form-data">
|
|
<label for="uploaded_files">Upload one or more files:</label><br>
|
|
<input id="uploaded_files" type="file" name="uploaded_files" multiple required>
|
|
<br><br>
|
|
<button type="submit">Upload and ingest files</button>
|
|
</form>
|
|
</body>
|
|
</html>
|