Hi
I multiple fields with file uploads, some of which are part of cloneable groups.
I am integrating this with a CRM system and need to make the file paths available to this system using Rest. File uploads (even with multiple files) show nicely in the JSON:
"environmental_sustainability_policy":[
{
"filesize":398120,
"ID":"6203",
"name":"xxxxxxx.pdf",
"path":"\/var\/www\/vhosts\/xxxxxxx\/httpdocs\/wp-content\/uploads\/2025\/02\/xxxxxxx.pdf",
"url":"https:\/\/xxxxxxx\/wp-content\/uploads\/2025\/02\/xxxxxxx.pdf",
"title":"xxxxxxx"
},
{
"filesize":14304,
"ID":"6204",
"name":"xxxxxxx.xlsx",
"path":"\/var\/www\/vhosts\/xxxxxxx\/httpdocs\/wp-content\/uploads\/2025\/02\/xxxxxxx.xlsx",
"url":"https:\/\/xxxxxxx\/wp-content\/uploads\/2025\/02\/xxxxxxx.xlsx",
"title":"xxxxxxx"
}
],
But when the fields are part of a group, only the media ID is returned:
"accreditation_details":[
{
"accreditation_name":"CHAS",
"upload_accreditation_document":[
"5864",
"5865"
],
"accreditation_other_expiry":{
"timestamp":"1834963200",
"formatted":"24\/02\/2028"
}
}
],
Please can you help.
Thanks
Marcus