Upload images to your PDS and get instant CDN URLs via images.blue
1{
2 "lexicon": 1,
3 "id": "blue.imgs.blup.image",
4 "defs": {
5 "main": {
6 "type": "record",
7 "description": "An uploaded image with expiration",
8 "key": "tid",
9 "record": {
10 "type": "object",
11 "required": ["blob", "createdAt", "expiresAt", "contentType", "size"],
12 "properties": {
13 "blob": {
14 "type": "blob",
15 "description": "The image blob",
16 "accept": ["image/*"],
17 "maxSize": 10485760
18 },
19 "createdAt": {
20 "type": "string",
21 "format": "datetime",
22 "description": "When the image was uploaded"
23 },
24 "expiresAt": {
25 "type": "string",
26 "format": "datetime",
27 "description": "When the image expires and should be deleted"
28 },
29 "filename": {
30 "type": "string",
31 "description": "Original filename",
32 "maxLength": 255
33 },
34 "contentType": {
35 "type": "string",
36 "description": "MIME type of the image",
37 "maxLength": 128
38 },
39 "size": {
40 "type": "integer",
41 "description": "Size of the image in bytes"
42 },
43 "metadata": {
44 "type": "unknown",
45 "description": "Additional metadata"
46 }
47 }
48 }
49 }
50 }
51}