|
@ -10,6 +10,7 @@ import ( |
|
|
"git.tovijaeschke.xyz/tovi/SuddenImpactRecords/Database" |
|
|
"git.tovijaeschke.xyz/tovi/SuddenImpactRecords/Database" |
|
|
"git.tovijaeschke.xyz/tovi/SuddenImpactRecords/Models" |
|
|
"git.tovijaeschke.xyz/tovi/SuddenImpactRecords/Models" |
|
|
"git.tovijaeschke.xyz/tovi/SuddenImpactRecords/Util" |
|
|
"git.tovijaeschke.xyz/tovi/SuddenImpactRecords/Util" |
|
|
|
|
|
|
|
|
"github.com/gofrs/uuid" |
|
|
"github.com/gofrs/uuid" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
@ -38,8 +39,7 @@ func createPostImage(w http.ResponseWriter, r *http.Request) { |
|
|
|
|
|
|
|
|
postUUID = uuid.FromStringOrNil(postID) |
|
|
postUUID = uuid.FromStringOrNil(postID) |
|
|
|
|
|
|
|
|
// TODO: Change arg to bitwise op
|
|
|
|
|
|
err = r.ParseMultipartForm(200000) |
|
|
|
|
|
|
|
|
err = r.ParseMultipartForm(20 << 20) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Printf("Error encountered parsing multipart form: %s\n", err.Error()) |
|
|
log.Printf("Error encountered parsing multipart form: %s\n", err.Error()) |
|
|
JsonReturn(w, 500, "An error occured") |
|
|
JsonReturn(w, 500, "An error occured") |
|
|