Trying to upload avatars through construct game services for a long term project and being hit with constant errors.
trying to upload via binary kept giving "invalid data" and nothing more.
trying to upload via base64 was even worse:
"[Construct Game Services] Request set avatar by Base64 failed
runtime.js:1 Uncaught (in promise) Error: set avatar by Base64 request failed: Could not load image, might be corrupted or invalid.
at i.Plugins.ConstructGameServices.Instance._ThrowIfBadResponse (runtime.js:1:84833)
at i.Plugins.ConstructGameServices.Instance._SetPlayerAvatarByBase64 (runtime.js:1:59822)
at async i.Plugins.ConstructGameServices.Instance.SetPlayerAvatarByBase64 (runtime.js:1:89342)"
even made sure to log EVERYTHING and still the issue persisted:
url: blob:https://preview.construct.net/821a1ca2-bb89-4234-bb7a-9c4903838e79
javaScriptInEvents.js:19 fetch ok: true 200
javaScriptInEvents.js:22 bytes: 9226 type: image/jpeg
javaScriptInEvents.js:26 dims: 65536x4293001688 bitDepth: 73 colourType: 67 interlace: 80
javaScriptInEvents.js:42 base64 length: 12304
javaScriptInEvents.js:45 has plus: true has slash: true padding: 2
javaScriptInEvents.js:47 decoded bytes: 9226 vs blob: 9226
javaScriptInEvents.js:48 header intact: false
i even converted a handmade png into base64 and uploaded it only to be rejected for "corruption" again.
any ideas on a fix?