The Dragon Wind Chrome extension enables UDP-accelerated uploads directly from your browser. Download the extension package below, then follow the steps to install it.
+
Chrome Extension
+
The Chrome extension is required to use fast UDP uploads. Install it once in Chrome — no other setup needed on your end.
Click Load unpacked, then navigate to and select the dragon-wind-extension folder you unzipped in step 1.
+
Click Load unpacked and select the dragon-wind-extension folder you unzipped in step 1.
5
- Configure the extension
-
Click the 🐉 Dragon Wind icon in Chrome's toolbar. Enter this server's URL and log in with your credentials. UDP uploads will now be available from any page.
+ Sign in
+
Click the extension icon in Chrome's toolbar, enter this portal's URL, and log in. UDP mode will now be available on the upload page.
-
-
- 📡 UDP Port Forwarding
- For uploads from outside your local network, make sure your UDP relay port is forwarded in your router. You can find your assigned UDP port in the .env file (RELAY_UDP_PORT) or check the UDP Relay tab above.
-
@@ -925,19 +911,29 @@ async function downloadExtension() {
// ============================================================
function setMode(mode) {
uploadMode = mode;
- document.getElementById('mode-http').className = `mode-btn${mode==='http'?' active-http':''}`;
- document.getElementById('mode-udp').className = `mode-btn${mode==='udp' ?' active-udp':''}`;
- const btn = document.getElementById('upload-btn');
- const desc = document.getElementById('mode-desc');
+ const btn = document.getElementById('upload-btn');
+ const label = document.getElementById('mode-label');
+ const detail = document.getElementById('mode-detail');
+ const hint = document.getElementById('udp-ext-hint');
if (mode === 'http') {
btn.className = 'btn-upload';
- desc.innerHTML = 'HTTP Mode: Direct S3 presigned upload. Best for LAN and stable connections. Speeds: 50–200 MB/s.';
+ if (label) label.textContent = 'HTTP Mode:';
+ if (detail) detail.textContent = 'Direct S3 presigned upload. Best for LAN and stable connections.';
+ if (hint) hint.style.display = 'none';
} else {
btn.className = 'btn-upload udp';
- desc.innerHTML = 'UDP Mode: Relay-accelerated transfer. 4–8× faster on WAN/lossy networks. Requires relay server.';
+ if (label) label.textContent = 'UDP Mode:';
+ if (detail) detail.textContent = 'Fast relay-accelerated transfer via the Chrome extension.';
+ if (hint) hint.style.display = 'none';
}
updateUploadBtn();
}
+function checkUdpExtension() {
+ // Extension injects a flag on the page when active
+ const extAvailable = !!(window.__dragonWindExtension || window.__dwExt);
+ const hint = document.getElementById('udp-ext-hint');
+ if (hint && extAvailable && uploadMode === 'http') hint.style.display = 'inline';
+}
// ============================================================
// FOLDERS