question

Clancey avatar image
Clancey asked

Bug: Filtering by multiple extensions

I found this sample https://drive.amazonaws.com/drive/v1/nodes?filters=contentProperties.contentType:(image* OR video*) from here( https://developer.amazon.com/public/apis/experience/cloud-drive/content/nodes#Filtering ) However if I apply the same thing to contentProperties.extension:(mp3 OR mp4) it throws an exception about invalid parameters.
amazon drive
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jamie Grossman avatar image
Jamie Grossman answered
Hey there, This is actually expected behaviour. Unfortunately, we do not support 'OR' queries in our system. 'contentType' is a special consideration. The client should actually make two calls to get both 'MP3' and 'MP4'. Hope this helps, Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.