Skip to content

Commit

Permalink
Add quick upload with token example to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkitt authored Aug 26, 2021
1 parent b0f32d3 commit a8aaaa3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ Client configuration and preferences are stored at ~/.plikrc or /etc/plik/plikrc
```bash
curl --form 'file=@/path/to/file' http://127.0.0.1:8080
```
When Authentication is used and NoAnonymousUploads are disabled you can add:
```bash
curl --form 'file=@/path/to/file' --header 'X-PlikToken: xxxx-xxx-xxxx-xxxxx-xxxxxxxx' http://127.0.0.1:8080
```


DownloadDomain configuration option must be set for this to properly work.

Expand Down Expand Up @@ -390,4 +395,4 @@ Arrays are overriden but maps are merged

```
PLIKD_DATA_BACKEND_CONFIG='{"Directory":"/var/files"}' ./plikd
```
```

0 comments on commit a8aaaa3

Please sign in to comment.