diff options
| author | Michael Peter Christen <mc@yacy.net> | 2025-08-15 10:26:21 -0600 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2025-08-15 10:26:21 -0600 |
| commit | 4c953ee8fd6636523cccd9c5bbf387aab734d86c (patch) | |
| tree | 70e02b2fdd3d57813e74d9c656fedd335728c8ab /htroot | |
| parent | a803c6063bcb190be6ec51d9f3ed868012a16dcf (diff) | |
added collection attribute setting for zim and warc imports
Having the collection attribute for those imports enables to
use those import methods for YaCy Pack generation which requires
the collection name to produce a pack name.
Fixed also file upload option through browser for both methods.
For large zim/warc files you require large memory settings
to be able to cache the uploaded file.
You also need large memory requirements in your browser to upload
gigabytes of files through multipart/form-data uploads.
Diffstat (limited to 'htroot')
| -rw-r--r-- | htroot/IndexImportWarc_p.html | 4 | ||||
| -rw-r--r-- | htroot/IndexImportZim_p.html | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/htroot/IndexImportWarc_p.html b/htroot/IndexImportWarc_p.html index 2a79d1fc4..e70b19ba6 100644 --- a/htroot/IndexImportWarc_p.html +++ b/htroot/IndexImportWarc_p.html @@ -14,7 +14,7 @@ #(import)# <p>No import thread is running, you can start a new thread here</p> - <form action="IndexImportWarc_p.html" method="get" accept-charset="UTF-8"> + <form action="IndexImportWarc_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8"> <!-- no post method here, we don't want to transmit the whole file, only the path--> <fieldset> <legend>Warc File Selection: select an warc file (which may be gz compressed)</legend> @@ -30,6 +30,8 @@ <dt class="TableCellDark"><label for="url">Url:</label></dt> <dd><input name="url" id="url" value="" size="75"/></dd> <dt></dt> + <dt class="TableCellDark"><label for="collection">Collection:</label></dt> + <dd><input name="collection" id="collection" type="text" value="user" size="75" /></dd> <dd><input name="submit" class="btn btn-primary" type="submit" value="Import Warc File" /></dd> </dl> </fieldset> diff --git a/htroot/IndexImportZim_p.html b/htroot/IndexImportZim_p.html index 68d74762e..b4914cea8 100644 --- a/htroot/IndexImportZim_p.html +++ b/htroot/IndexImportZim_p.html @@ -25,6 +25,8 @@ <dl> <dt class="TableCellDark"><label for="file">File:</label></dt> <dd><input name="file" id="file" type="file" value="" size="75" /></dd> + <dt class="TableCellDark"><label for="collection">Collection:</label></dt> + <dd><input name="collection" id="collection" type="text" value="user" size="75" /></dd> <dt></dt> <dd><input name="submit" class="btn btn-primary" type="submit" value="Import ZIM File" /></dd> </dl> |
