Hello @jacktcunningham_publisher
For the moment you canโt upload more than one file per request, so you must do more than one request if you want to do more than one file.
In your case you would have to
for(file of plan.gallery){
const uploadedFile = await client.uploadFile(
file, {
defaultFieldMetadata: {
en: {
alt: '',
title: '',
focalPoint: {
x: 0.5,
y: 0.5,
},
customData: {
watermark: false
}
}
},
notes: '',
}
}
There is a feature request for bulk uploads here: Some Requests
But for now, you can only upload one file per reuquest