put together the handling for photo uploaded page (untested)

This commit is contained in:
2025-10-11 23:23:38 -06:00
parent 185d1456a6
commit 2b8de350ab
8 changed files with 293 additions and 2 deletions
+7
View File
@@ -12,6 +12,7 @@ package ui
import (
"bytes"
"mime/multipart"
"net/http"
"strconv"
"time"
@@ -34,6 +35,7 @@ type AmContext interface {
FormField(string) string
FormFieldInt(string) (int, error)
FormFieldIsSet(string) bool
FormFile(string) (*multipart.FileHeader, error)
RC() int
OutputType() string
Parameter(string) string
@@ -127,6 +129,11 @@ func (c *amContext) FormFieldIsSet(name string) bool {
return req.Form.Has(name)
}
// FormFile returns a "file" parameter from a multipart upload form.
func (c *amContext) FormFile(name string) (*multipart.FileHeader, error) {
return c.echoContext.FormFile(name)
}
// RC returns the HTTP result code for the current operation.
func (c *amContext) RC() int {
return c.httprc