1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-16 18:16:24 -07:00

Move upload handling to subpackage

This commit is contained in:
Eggbertx 2023-07-12 14:20:41 -07:00
parent 2bac71f828
commit 4078197b8d
10 changed files with 521 additions and 455 deletions

View file

@ -15,6 +15,7 @@ import (
"github.com/gochan-org/gochan/pkg/gcutil"
"github.com/gochan-org/gochan/pkg/manage"
"github.com/gochan-org/gochan/pkg/posting"
"github.com/gochan-org/gochan/pkg/posting/uploads"
"github.com/gochan-org/gochan/pkg/server"
"github.com/gochan-org/gochan/pkg/server/serverutil"
)
@ -147,7 +148,7 @@ func editPost(checkedPosts []int, editBtn string, doEdit string, writer http.Res
return
}
upload, gotErr := posting.AttachUploadFromRequest(request, writer, post, board)
upload, gotErr := uploads.AttachUploadFromRequest(request, writer, post, board)
if gotErr {
// AttachUploadFromRequest handles error serving/logging
return