Multiple upload via API

I am useing the inbuilt Api for add /api/add/{table} to add a form everything works but i have an image field. Only a single image uploads but it’s a multiple image field . The multiple image upload is working on the regular phpmaker site but on my mobile app only 1 image is uploading. pphpmaker 2024

  1. Which version are you using?
  2. Note that REST API does not use direct file upload with other fields. You need to upload files first, read REST API -> Upload Files, then you use the file token as the field value for the file upload field and submit it together with other field values.

PHP maker 2024

when i used api/upload i got this response

{
"success": true,
"files": {
"file": {
"name": "favour.png",
"success": true
}
},
"filetoken": "64956325",
"version": "24.16.0"
}

I got the uploaded files in global upload folder. and subfolder . like temp_99999 can i make it drop directly in the global upload folder?

Note the API still follows the field's upload path setting.