web.post
web.post
Function
Read the form POST field object.
Syntax
web.post
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Object | Returns the ordinary form field object in the request body. |
Object structure
| Field | Type | Description |
|---|---|---|
| Any form field name | String/Array | Single-value fields return String; multi-value fields with the same name return Array, and the array elements are String. When the field does not exist, the read result is Empty. |
Example
// Form field: name=BT result = web.post.name // Output: BT print result
Notes
- The current implementation reads fields from multipart/form-data or form data.
- The upload file field will not be written to
web.post, please read it throughweb.files.