Files
FileTransfer/pages/index.html
T
DerSchandfleckandClaude Fable 5.2 90500811df Vorgaben: 20 GB je Transfer, Frist 1 Tag
Bei nur einer Frist entfällt das Auswahlfeld; die Frist steht dann im
Hinweis unter der Dateiauswahl. Ohne DEFAULT_EXPIRY_DAYS ist die
kürzeste Frist vorausgewählt.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 01:32:07 +01:00

188 lines
7.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="de" data-title-de="Dateien teilen" data-title-en="Share files">
<head>
{{head}}
<title>Dateien teilen – {{siteName}}</title>
</head>
<body>
{{header}}
<main class="container">
<section class="intro">
<h1>
<span lang="de">Dateien teilen</span>
<span lang="en">Share files</span>
</h1>
<p class="lead">
<span lang="de">Lade Dateien hoch und gib den Link weiter. Nach Ablauf der Frist werden sie automatisch gelöscht.</span>
<span lang="en">Upload files and pass on the link. They are deleted automatically once the time is up.</span>
</p>
</section>
<noscript>
<p class="notice notice-warn">
<span lang="de">Zum Hochladen muss JavaScript im Browser eingeschaltet sein.</span>
<span lang="en">Uploading needs JavaScript to be enabled in your browser.</span>
</p>
</noscript>
<section class="card" id="uploader">
<!-- Schritt 1: Dateien auswählen -->
<form id="step-select" novalidate>
<div class="dropzone" id="dropzone">
<svg class="dropzone-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 16V4"/>
<path d="m7 9 5-5 5 5"/>
<path d="M5 16v2a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-2"/>
</svg>
<p class="dropzone-title">
<span lang="de">Dateien hierher ziehen</span>
<span lang="en">Drag files here</span>
</p>
<p class="dropzone-or">
<span lang="de">oder</span>
<span lang="en">or</span>
</p>
<input class="visually-hidden" type="file" id="file-input" multiple>
<label class="button button-secondary" for="file-input">
<span lang="de">Dateien auswählen</span>
<span lang="en">Choose files</span>
</label>
<p class="hint" id="limit-hint"></p>
</div>
<div id="selection" hidden>
<ul class="file-list" id="file-list"></ul>
<div class="selection-summary">
<span id="selection-total"></span>
<button type="button" class="link-button" id="clear-files">
<span lang="de">Alle entfernen</span>
<span lang="en">Remove all</span>
</button>
</div>
</div>
<div class="fields" id="fields">
<div class="field" id="expiry-field" hidden>
<label for="expiry">
<span lang="de">Verfügbar für</span>
<span lang="en">Available for</span>
</label>
<select id="expiry"></select>
</div>
<div class="field" id="code-field">
<label for="code">
<span lang="de">Upload-Code</span>
<span lang="en">Upload code</span>
</label>
<input type="text" id="code" autocomplete="off" autocapitalize="none" autocorrect="off" spellcheck="false" maxlength="200">
<label class="check">
<input type="checkbox" id="remember-code">
<span lang="de">Auf diesem Gerät merken</span>
<span lang="en">Remember on this device</span>
</label>
</div>
</div>
<p class="hint" id="code-hint">
<span lang="de">Zum Hochladen brauchst du einen Upload-Code. Du bekommst ihn von der Person, die diese Seite betreibt.</span>
<span lang="en">You need an upload code to upload. Ask the person who runs this site for one.</span>
</p>
<p class="notice notice-error" id="form-error" role="alert" hidden></p>
<button type="submit" class="button button-primary button-wide" id="start-upload" disabled>
<span lang="de">Hochladen</span>
<span lang="en">Upload</span>
</button>
</form>
<!-- Schritt 2: Fortschritt -->
<div id="step-progress" hidden>
<h2 class="card-title" id="progress-title" tabindex="-1">
<span lang="de">Wird hochgeladen …</span>
<span lang="en">Uploading …</span>
</h2>
<progress id="progress-bar" max="1000" value="0" aria-labelledby="progress-title"></progress>
<p class="progress-line">
<strong id="progress-percent">0 %</strong>
<span id="progress-detail"></span>
</p>
<p class="hint" id="progress-file"></p>
<p class="notice notice-warn" id="progress-retry" role="status" hidden>
<span lang="de">Verbindung unterbrochen – der Upload wird gleich fortgesetzt …</span>
<span lang="en">Connection interrupted – the upload will continue in a moment …</span>
</p>
<div class="actions">
<button type="button" class="button button-secondary" id="cancel-upload">
<span lang="de">Abbrechen</span>
<span lang="en">Cancel</span>
</button>
</div>
</div>
<!-- Schritt 3: fertig -->
<div id="step-done" hidden>
<div class="done-head">
<svg class="done-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="m5 12.5 4.5 4.5L19 7.5"/>
</svg>
<h2 class="card-title" id="done-title" tabindex="-1">
<span lang="de">Fertig – hier ist dein Link</span>
<span lang="en">Done – here is your link</span>
</h2>
</div>
<div class="link-row">
<input type="text" id="share-link" readonly aria-labelledby="done-title">
<button type="button" class="button button-primary" id="copy-link"></button>
</div>
<p class="hint" id="done-info"></p>
<div class="actions">
<a class="button button-secondary" id="open-link" href="/">
<span lang="de">Link öffnen</span>
<span lang="en">Open link</span>
</a>
<button type="button" class="button button-secondary" id="new-upload">
<span lang="de">Weitere Dateien hochladen</span>
<span lang="en">Upload more files</span>
</button>
</div>
</div>
<!-- Upload unterbrochen -->
<div id="step-error" hidden>
<h2 class="card-title" id="error-title" tabindex="-1">
<span lang="de">Upload unterbrochen</span>
<span lang="en">Upload interrupted</span>
</h2>
<p class="notice notice-error" id="upload-error" role="alert"></p>
<p class="hint" id="error-progress"></p>
<div class="actions">
<button type="button" class="button button-primary" id="resume-upload">
<span lang="de">Fortsetzen</span>
<span lang="en">Resume</span>
</button>
<button type="button" class="button button-secondary" id="discard-upload">
<span lang="de">Verwerfen</span>
<span lang="en">Discard</span>
</button>
</div>
</div>
</section>
<section class="recent" id="recent" hidden>
<h2>
<span lang="de">Zuletzt hochgeladen</span>
<span lang="en">Recently uploaded</span>
</h2>
<p class="hint">
<span lang="de">Diese Liste liegt nur in diesem Browser.</span>
<span lang="en">This list is kept in this browser only.</span>
</p>
<ul class="recent-list" id="recent-list"></ul>
<p class="notice notice-error" id="recent-error" role="alert" hidden></p>
</section>
</main>
{{footer}}
<script type="module" src="/js/upload.js"></script>
</body>
</html>