Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question What happens if more than 16kb of data is stored in one slot?

Discussion in 'Cloud Save' started by capyiya, Sep 15, 2022.

  1. capyiya

    capyiya

    Joined:
    Oct 4, 2018
    Posts:
    1
    I am new to the server.

    It provides up to 200 slots, but is limited to 16kb per slot.

    What happens if more than 16kb of data is stored in one slot?

    Files can grow unintentionally as data grows, how do you deal with it?

    Thank you.
     
  2. Unity_AndyP

    Unity_AndyP

    Unity Technologies

    Joined:
    Jun 23, 2021
    Posts:
    43
    Hi Capyiya,

    If the data grows bigger than the 16kb slot then it will return a 400 error with "type": "problems/validation" in the payload. In the errors, there will be a description of which key was over the limit.

    What we recommend doing with this is if you expect a ley to go over the limit then spread the data out over smaller chunks in different keys.