# fyi.opensocial.getBlobFields

> The fields of these kinds of record that hold a file, and what each takes, by their lexicons: the host's own, and the group's. What a page may upload, besides a picture, for a record it writes.

- Kind: query
- Authority: opensocial.fyi
- Lexicon: 1
- Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.getBlobFields)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.getBlobFields/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.getBlobFields/analytics)

## Query (`fyi.opensocial.getBlobFields`)

Type: query · GET

### Parameters (query string)

- `collections` (array, required)
  - Constraints: maxLength: 60
  - `items` (string · nsid)
- `group` (string · did, required)

### Output (application/json)

- `fields` (array, required)
  - `items` (ref)
    - Reference: `#blobFieldView`

## #blobFieldView (`fyi.opensocial.getBlobFields#blobFieldView`)

Type: object

### Properties

- `accept` (array): The media types it takes, `*` for any of a kind (`image/*`); any, without.
  - `items` (string)
- `collection` (string · nsid, required)
- `maxSize` (integer): The most bytes it takes; no limit, without.
- `path` (string, required): Where in the record: `ghost`, or `images[].image`.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "blobFieldView": {
      "properties": {
        "accept": {
          "description": "The media types it takes, `*` for any of a kind (`image/*`); any, without.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "collection": {
          "format": "nsid",
          "type": "string"
        },
        "maxSize": {
          "description": "The most bytes it takes; no limit, without.",
          "type": "integer"
        },
        "path": {
          "description": "Where in the record: `ghost`, or `images[].image`.",
          "type": "string"
        }
      },
      "required": [
        "collection",
        "path"
      ],
      "type": "object"
    },
    "main": {
      "description": "The fields of these kinds of record that hold a file, and what each takes, by their lexicons: the host's own, and the group's. What a page may upload, besides a picture, for a record it writes.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "fields": {
              "items": {
                "ref": "#blobFieldView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "fields"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "collections": {
            "items": {
              "format": "nsid",
              "type": "string"
            },
            "maxLength": 60,
            "type": "array"
          },
          "group": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "group",
          "collections"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.getBlobFields",
  "lexicon": 1
}
```
