Skin upload API max file size is slightly higher than maximum in profile settings
Relates to WEB-840
The bug
The maximum file size of skins was set to 16384 for the page https://minecraft.net/en-us/profile/?ref=bm. However, apparently this was only hardcoded in the JavaScript code of the page:
validateSkinFile: function(e) { return new r.Promise(function(t, n) { var o; if ("png" !== e.name.match(/\.([^\.]+)$/)[1].toLowerCase()) return void n(new Error("File is not an .png")); if (e.size > 16384) return void n(new Error("File is too large")); ...
The API still uses 24576 bytes as maximum value:
{"error":"IllegalArgumentException","errorMessage":"Max allowed size is 24576 bytes"}
Created Issue:
Skin upload API max file size is slightly higher than maximum in profile settings
Relates to
WEB-840The bug
The maximum file size of skins was set to 16384 for the page https://minecraft.net/en-us/profile/?ref=bm. However, apparently this was only hardcoded in the JavaScript code of the page:
validateSkinFile: function(e) { return new r.Promise(function(t, n) { var o; if ("png" !== e.name.match(/\.([^\.]+)$/)[1].toLowerCase()) return void n(new Error("File is not an .png")); if (e.size > 16384) return void n(new Error("File is too large")); ...The API still uses 24576 bytes as maximum value:
{"error":"IllegalArgumentException","errorMessage":"Max allowed size is 24576 bytes"}
Added Components: API
Why did you make this report private? Is there something that breaks because of a larger file size?
I assume nothing breaks when uploading larger files, but I just wanted to be on the safe side when creating this report. These roughly 8kb probably don't matter, so if you want you can change the security level.
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Could you please confirm if the reported issue still occurs for you?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki