airesvsg / acf-to-rest-api

Exposes Advanced Custom Fields Endpoints in the WordPress REST API
https://wordpress.org/plugins/acf-to-rest-api/
1.32k stars 111 forks source link

How to upload a simple file via ACF to REST API #366

Open ServiceSector opened 3 years ago

ServiceSector commented 3 years ago

Steps to replicate: -Made sure that uploading file is possible via /wp-json/wp/v2/media/ POST reference -On postman, /wp-json/acf/v3/users/140/ POST with body set as form-data, keys being fields[imagefield] and value being a file sample.jpg I get cannot update item status 500

I'm certain that it's a simple mistake, something small, not sure what though