uploads

Log | Files | Refs

commit b26232b4553a7c3c9b11abf8e84ee1a4acdf8da8
parent 6a7a8a29ba0bd2abc0c5d10a59f8eaecac12188c
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Tue, 21 Jul 2026 09:45:56 +0530

Handle batch path in AJAX response

Add handling for batch path in AJAX response.
Diffstat:
Mindex.html | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/index.html b/index.html @@ -393,6 +393,15 @@ if (xhr.status >= 200 && xhr.status < 300) { try { const data = JSON.parse(xhr.responseText); + + if (data.batch_path) { + renderResultCard(resultsList, { + item_id: "Batch Link (All Files)", + link_path: data.batch_path, + expires_at: data.batch_expires_at + }); + } + data.files.forEach(item => renderResultCard(resultsList, item)); fileInput.value = ''; customIdInput.value = ''; resetDropdown('expiry-dd');
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror