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:
parent
2bac71f828
commit
4078197b8d
10 changed files with 521 additions and 455 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue