diff --git a/internal/web/static/upload.js b/internal/web/static/upload.js index fd01856..5bcf293 100644 --- a/internal/web/static/upload.js +++ b/internal/web/static/upload.js @@ -598,6 +598,7 @@ class GatewayUI { } async shareFile(hash, name) { + console.log('shareFile called with:', { hash, name }); try { // Get file metadata to check for streaming info const response = await fetch(`/api/metadata/${hash}`); @@ -635,10 +636,17 @@ class GatewayUI { } showShareModal(fileName, links) { + console.log('showShareModal called with:', { fileName, links }); const modal = document.getElementById('share-modal'); const fileNameEl = document.getElementById('share-file-name'); const linksContainer = document.getElementById('share-links'); + console.log('Modal elements found:', { + modal: !!modal, + fileNameEl: !!fileNameEl, + linksContainer: !!linksContainer + }); + if (!modal || !fileNameEl || !linksContainer) { console.error('Share modal elements not found'); return;