Uploaded image for project: 'Mojang Web Services'
  1. Mojang Web Services
  2. WEB-882

Skin upload API max file size is slightly higher than maximum in profile settings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Labels:

      Description

      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"}
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            marcono1234 [Mod] Marcono1234
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: