Skip to content

Commit

Permalink
file name restrictions (#347)
Browse files Browse the repository at this point in the history
A user pointed out that the file name restrictions for file attachments
are quite specific but not referenced in docs. This clarifies the valid
character set for file names in the Records API.
  • Loading branch information
kostasb authored Jun 20, 2024
1 parent 3e1a571 commit b826a8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 040-Data-operations/150-file-attachments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ record, _ := recordsClient.Insert(context.TODO(), xata.InsertRecordRequest{
}
```

File names may consist of UTF-8 encoded ASCII excluding: control characters (`0x00-0x1F`,`0x7F` such as `\r`,`\n`,`\t`) and special characters `\",*,/,:,<,>,?,\\,|`.

</TabbedCode>

### Update a file through updating a record
Expand Down

0 comments on commit b826a8a

Please sign in to comment.