Skip to content
Back

PHP Function Request Body Handling

  • 0
  • Self Hosted
  • Functions
hamed
25 Jan, 2025, 04:55

According to the documentation, the req object should have the following properties:

req.bodyText Returns text that has been converted from binary data.

req.bodyJson Parses the body text as JSON.

req.bodyBinary Returns the binary body.

However, when I log the $context->req object, I only see the bodyBinary property. The bodyText and bodyJson properties are not present.

Does this mean that the request body will only contain one of these three options?

TL;DR
Developers are experiencing an issue with PHP function request body handling. The properties `bodyText` and `bodyJson` are missing when logging the req object, which only shows `bodyBinary`. The request body seems to only contain the binary option.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more