# computer.spaces.file

> A file at spaces.computer, on your desktop or in a shared folder. In a shared folder it is stored in the account of whoever added it. Holds the file itself, its name, and on the desktop where its icon sits.

- Kind: record
- Record key: tid
- Authority: spaces.computer
- Lexicon: 1
- Published by [spaces.computer](https://lexicon.garden/identity/did:plc:fcup7ltuhyvyayda32fru55z), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fcup7ltuhyvyayda32fru55z/computer.spaces.file)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fcup7ltuhyvyayda32fru55z/computer.spaces.file/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fcup7ltuhyvyayda32fru55z/computer.spaces.file/analytics)

## Record (`computer.spaces.file`)

Type: record · key tid

### Properties

- `alt` (string): A description of the file for people who cannot see it.
  - Constraints: maxLength: 2000, maxGraphemes: 500
- `createdAt` (string · datetime, required)
- `file` (blob, required): The file.
  - Constraints: maxSize: 10485760, accept: */*
- `name` (string, required): The file's name.
  - Constraints: minLength: 1, maxLength: 512, maxGraphemes: 128
- `position` (ref): Where the icon sits on the desktop. Without this, the desktop chooses a spot.
  - Reference: `#position`

## #position (`computer.spaces.file#position`)

Type: object

### Properties

- `x` (integer, required): Distance in pixels from the left edge of the desktop.
- `y` (integer, required): Distance in pixels from the top edge of the desktop.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A file at spaces.computer, on your desktop or in a shared folder. In a shared folder it is stored in the account of whoever added it. Holds the file itself, its name, and on the desktop where its icon sits.",
      "key": "tid",
      "record": {
        "properties": {
          "alt": {
            "description": "A description of the file for people who cannot see it.",
            "maxGraphemes": 500,
            "maxLength": 2000,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "file": {
            "accept": [
              "*/*"
            ],
            "description": "The file.",
            "maxSize": 10485760,
            "type": "blob"
          },
          "name": {
            "description": "The file's name.",
            "maxGraphemes": 128,
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "position": {
            "description": "Where the icon sits on the desktop. Without this, the desktop chooses a spot.",
            "ref": "#position",
            "type": "ref"
          }
        },
        "required": [
          "file",
          "name",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "position": {
      "properties": {
        "x": {
          "description": "Distance in pixels from the left edge of the desktop.",
          "type": "integer"
        },
        "y": {
          "description": "Distance in pixels from the top edge of the desktop.",
          "type": "integer"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "type": "object"
    }
  },
  "id": "computer.spaces.file",
  "lexicon": 1
}
```
