# fyi.opensocial.getBlobFields

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.getBlobFields)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.getBlobFields/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.getBlobFields/examples)

## Definitions

### `fyi.opensocial.getBlobFields#blobFieldView`

**Type**: `object`

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

### `fyi.opensocial.getBlobFields`

**Type**: `query`

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.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `collections` | `array` | Yes |  |
| `group` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `fields` | `array` | Yes |  |

## Raw 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
}
```
