dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

filedrop.gohtml (1891B)


      1 {{ define "content" }}
      2     <div id="parent">
      3         <div class="container" id="form_login">
      4             <div class="row">
      5                 <div class="col-8 offset-2 col-md-8 offset-md-2 col-sm-8 col-lg-6 offset-lg-3 col-xl-4 offset-xl-4">
      6                     {{ if .Data.Success }}
      7                         <div class="alert alert-success">{{ .Data.Success }}</div>
      8                     {{ else }}
      9                         {{ if .Data.Error }}
     10                             <div class="alert alert-danger">{{ .Data.Error }}</div>
     11                         {{ end }}
     12                         <div class="card" style="background-color: rgba(0, 0, 0, 0.7);">
     13                             <div class="card-header" style="background-color: rgba(50, 50, 50, 0.7); color: #ccc;">
     14                                 <strong>{{ t "File drop" . }}</strong>
     15                             </div>
     16                             <div class="card-body">
     17                                 <form method="post" enctype="multipart/form-data"><input name="file" type="file" /><input type="submit" value="submit" /></form>
     18                                 <p class="mt-3">
     19                                     For big files, you should consider running the custom dkf file uploader<br />
     20                                     <a href="http://git.dkforestseeaaq2dqz2uflmlsybvnq2irzn4ygyvu53oazyorednviid.onion/n0tr1v/dkforest/src/master/cmd/dkfupload/main.go">http://git.dkf.onion/n0tr1v/dkforest/src/master/cmd/dkfupload/main.go</a>
     21                                 </p>
     22                                 <p>
     23                                     <code>./dkfupload --file /path/to/file.gz --uuid {{ .Data.Filedrop.UUID }}</code>
     24                                 </p>
     25                             </div>
     26                         </div>
     27                     {{ end }}
     28                 </div>
     29             </div>
     30         </div>
     31     </div>
     32 {{ end }}