• TwistyLex@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    18 hours ago

    Honestly no idea. It’s funny though. The API allows us to either read it directly from our lakehouse with the 28Kb limit, or allows us to encode it in a json object. It actually recommends using the json method if we want to send larger files… but then complains it’s too large if it’s over 28Kb 🤷‍♂️

    I think it was probably originally only intended to allow attaching icons.

    • bamboo@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      17 hours ago

      Feels like a bug where someone forgot the 1 in 128kb. What chat app is this?? In Slack, custom emojis can be up to 128kb in filesize

      • TwistyLex@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        17 hours ago

        It’s MS Teams with their PowerAutomate flows from Fabric. The limitation might not exist in the direct rest API, which I could have used through Python; but it’s a hackathon, and my other team mates know PowerAutomate. Faster if we each coordinate using what we’re good with.