Search code examples
google-drive-apicustom-properties

Google Drive Custom file Properties limitation


Is someone please explain the meaning of "totaled from all sources" which described at below https://developers.google.com/drive/api/guides/properties

Maximum of 100 custom properties per file, totaled from all sources.
Maximum of 30 public properties per file, totaled from all sources.
Maximum of 30 private properties per file from any one application.

My intention is to store over 30 properties at drive file and can be able to search with all shared user. Is it possible to do it with drive properties api?


Solution

  • totaled from all sources refers to any property that has been added to the file, irrespective of which app was used for this.

    That is, a file can have up to:

    • 30 public properties (that is, visible to all apps) (field properties).
    • 30 private properties per app (field appProperties).
    • 100 properties in total (counting public and private properties).

    That is, you can have 30 public properties plus 30 appProperties per app, with a total maximum of 100.

    When those limits are reached, the API returns the following error message:

    The file's property and app property limit has been reached. Files can have up to 30 properties and 30 app properties per app, with a maximum of 100 in total.

    Reference: