Limit uploads by request total size

This commit is contained in:
shkim
2026-05-10 20:22:33 +09:00
parent c07777371d
commit 00e0fe60b4
5 changed files with 283 additions and 26 deletions
+32
View File
@@ -0,0 +1,32 @@
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{title}}</title>
<link rel="stylesheet" href="{{cssPath}}">
</head>
<body>
<main class="upload-page">
<section class="hero">
<div class="hero__media" aria-hidden="true"></div>
<div class="hero__content">
<p class="eyebrow">Photo Request</p>
<h1>{{title}}</h1>
<p class="summary">이 링크 전체에서 총 {{maxMb}} MB까지 업로드할 수 있어.</p>
</div>
</section>
<section class="upload-panel">
<form method="post" action="/r/{{slug}}" enctype="multipart/form-data">
<label class="dropzone">
<span class="dropzone__title">사진이나 영상을 선택해줘</span>
<span class="dropzone__meta">허용 형식: {{allowedExts}}</span>
<input type="file" name="files" accept="{{accept}}" multiple required>
</label>
<button type="submit">업로드</button>
</form>
</section>
</main>
</body>
</html>