Skip to content

Commit fdf070b

Browse files
committed
Add file size selectors
1 parent ae65018 commit fdf070b

File tree

1 file changed

+12
-0
lines changed
  • src/content/docs/cloudflare-one/policies/gateway/http-policies

1 file changed

+12
-0
lines changed

src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,18 @@ Use this selector to match against a domain and all subdomains -- for example, i
464464
| ------- | -------------------------------------------- |
465465
| Domain | `any(http.conn.domains[*] == "example.com")` |
466466

467+
### Download and Upload File Size
468+
469+
These selectors can be used to limit the file size of upload or download transactions.
470+
471+
| UI name | API example |
472+
| ------------------------ | ------------------------------- |
473+
| Download File Size (MiB) | `http.download.file.size >= 10` |
474+
475+
| UI name | API example |
476+
| ---------------------- | ----------------------------- |
477+
| Upload File Size (MiB) | `http.upload.file.size >= 10` |
478+
467479
### Download and Upload File Types
468480

469481
:::caution[Deprecated selectors]

0 commit comments

Comments
 (0)