function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Wim van BeekWim van Beek 

Unexpected behavior on ApexPages.currentPage().getContent() in salesforce Site

When reading a incomming POST call into Salesforce site, the ApexPages.currentPage().getContent() does not work. Schould this function return the data (as blob etc.)  Ref https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_System_PageReference_getContent.htm indicates it would, but at runtime I get all kind of bizar errors. Any idea or experiences?
Using ApexPages.currentPage().getHeaders() and ApexPages.currentPage().getParameters()  work fine