Skip to content

Commit

Permalink
Update presign-file.md
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady authored Mar 26, 2020
1 parent b8774ff commit 327244d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions endopoints/ui/presign-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
- must be url encoded
- :version - version number (or ? for latest version)
- :file - file name
- must be url encoded
- the file name should include the prefix "producer/" or "system/".
- the file path should be urlencoded

## URL Parameters

- None
- no_redirect
- if "true", the presigned url will be sent in a json payload rather than in a redirect header

## Request Headers

Expand All @@ -33,6 +35,7 @@

## Return status codes

- 200 if a signed URL is available and ?no_redirect=true
- 303 if a signed URL is available
- 403 if request cannot be satisfied
- 404 if file is not found
Expand All @@ -45,7 +48,12 @@

## Return payload

- No payload if redirect is available
- if ?no_redirect=true
```
{
'url': 'https://s3_minio_or_wasabi_presigned_url'
}
```

Otherwise, return error page

Expand Down

0 comments on commit 327244d

Please sign in to comment.