diff --git a/main.go b/main.go index 4c686026..473c4d06 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,10 @@ package main import ( "strings" + _ "image/gif" + _ "image/jpeg" + _ "image/png" + "github.com/aerogo/aero" "github.com/aerogo/session-store-nano" "github.com/animenotifier/arn" diff --git a/scripts/Actions/Upload.ts b/scripts/Actions/Upload.ts index d9f7c94d..72e91cc6 100644 --- a/scripts/Actions/Upload.ts +++ b/scripts/Actions/Upload.ts @@ -45,9 +45,7 @@ function uploadImage(file: File) { }, body: reader.result }) - - console.log("Avatar upload finished!") } - reader.readAsBinaryString(file) + reader.readAsArrayBuffer(file) } \ No newline at end of file