Ask Your Question

Photo sequences mismatch - GetObject (Location=0 vs Location=1)

asked 2021-09-24 10:54:19 -0600

Hi, there's a sequence numbering mismatch between GetObject Location = 0 and Location = 1:

GetObject Location = 1 returns photo Urls with sequence starting at "0" (there's actually no sequence number in the first url) GetObject Location = 0 (for the same listing) returns photo names with sequence starting at 1. (Photo Sequence is embedded in the multipart response of the request.

This mismatch may cause issues in our client app. I would think the sequence number (id of the photo) would match when using either method.

Please advise

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-09-24 13:04:01 -0600

updated 2021-09-24 13:08:12 -0600

You should be using the one based ObjectID header value returned by GETOBJECT in both cases.
The number returned as part of the filename should not be used because it may change in the future.
Note: If you are pulling from the Media resource, the MED_sequence field value is zero based.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2021-09-24 10:54:19 -0600

Seen: 148 times

Last updated: Sep 24 '21