I'm currently trying to implement a system that posts data as 'multipart/form-data' and I am receiving the data through php://input as follows:
[
{
"id":"595944535043",
"companyProfileID":"",
"accountID":"",
"ownerID":"",
"importID":"",
"avatarUrl":"https://d2ojpxxtu63wzl.cloudfront.net/static/a9b1a30bbf8148445118d0d70ebd4a01_16edde90d640c6ee84a1874a4dbb3cdc816bc9e94ec6a23efc885e59947b28ab",
"companyName":"",
"title":"",
"firstName":"Madison",
"lastName":"Test",
"street":"",
"city":"",
"country":"",
"state":"",
"zipcode":"",
"emailAddress":"email@email.com",
"website":"",
"phoneNumber":"",
"officePhoneNumber":"",
"phoneNumberExtension":"",
"mobilePhoneNumber":"",
"faxNumber":"",
"description":"",
"campaignID":"",
"crmLeadID":"",
"crmOpportunityID":"",
"crmAccountID":"",
"crmContactID":"",
"crmOwnerID":"",
"crmThirdPartyID":"",
"formGUID":"",
"trackingID":"",
"leadSource":"",
"industry":"",
"active":"1",
"isQualified":"",
"isContact":"1",
"isCustomer":"0",
"hasOpportunity":"0",
"lastActivityDate":"2018-06-08 15:04:10",
"updateTimestamp":"2018-06-17 09:25:39",
"updateUserProfileID":"0",
"createTimestamp":"2018-06-08 14:04:10",
"createUserProfileID":"313407940",
"leadStatus":"contact",
"persona":"",
"services_5addf517bd49b":""
}
]
However when I try and access any of these details via $_POST it dosen't return anything. A quick check indicates that $_POST is in fact empty.
I've exhausted all options on this question php $_POST array empty upon form submission
And this one PHP some $_POST values missing but are present in php://input
Changed my max_input_vars to 10000, post_max_size is 1G. Tried JSON decode solutions, parsestr solutions, nothing.
So just wondering if there's anybody out there who can help?
Not a duplicated question as the data is nested. Different to previous problems on Stack overflow