nirvash/templates/file_upload_process.html

18 lines
410 B
HTML
Raw Normal View History

2022-06-13 06:32:14 +00:00
{{ $slug := ((.Context).Value "params").Slug }}
{{ $uploadError := ((.Context).Value "file-manager").AddFile $slug . }}
{{ template "header" . }}
{{ if $uploadError }}
<h2>Upload Error</h2>
<span class="adapter-error">{{($uploadError).Error}}</span>
2022-06-13 06:32:14 +00:00
{{ else }}
<h2>Upload Successful</h2>
<span class="adapter-success">The file has been uploaded successfuly</span>
2022-06-13 06:32:14 +00:00
{{ end }}
{{ template "footer" . }}