{{ $slug := ((.Context).Value "params").Slug }} {{ $uploadError := ((.Context).Value "file-manager").AddFile $slug . }} {{ template "header" . }} {{ if $uploadError }}

Upload Error

{{($uploadError).Error}} {{ else }}

Upload Successful

The file has been uploaded successfuly {{ end }} {{ template "footer" . }}