Skip to content

Commit

Permalink
Update docs for handling filenames with non-ASCII characters in API v2
Browse files Browse the repository at this point in the history
  • Loading branch information
pwoznic committed Oct 16, 2024
1 parent e397d75 commit bfd9495
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ curl -L -X POST 'https://api.vectara.io/v2/corpora/:corpus_key/upload_file' \
-F 'metadata={"key": "value"};type=application/json' \
-F 'file=@/path/to/file/file.pdf;filename=desired_filename.pdf'
```

### Filenames with Non-ASCII Characters

When uploading files with non-ASCII (non-English) characters, such as Russian
or Chinese, ensure that the filename is URL encoded. API v2 follows web
standards which require URL-encoded file names.

### Set the Document ID

The `Content-Disposition` header lets you specify the Document ID of a file
Expand Down

0 comments on commit bfd9495

Please sign in to comment.