Replies: 2 comments
-
Sure we can give it a default value, that is a very easy fix. |
Beta Was this translation helpful? Give feedback.
-
I would not worry about that. There are more than 128 bits of randomness in those URLS. |
Beta Was this translation helpful? Give feedback.
-
Enhancement
At present, if a user attempts to download an image directly using it's ID, but without a variant chosen, an error page will be given.
Example:
https://photos . nabein . me/api/v2/Zip?photo_ids=q5MYBmAuLNJ61S5X_Qgqs9Ae
With no
?variant=
at the end, an error page is given. Instead, it might be better to auto-select theORIGINAL
variant, to avoid an error page appearing.This would absolutely be an edge case, as I highly doubt many if any users would be downloading images directly based on IDs, but it was just a thought.
My only other thought relating to this, is that it could be used maliciously, for example people iterating over Base64 values to find valid photos, and since ORIGINAL would be invoked as the variant, it would drive up bandwidth usage (and thus costs), as well as CPU and other resource usage.
Beta Was this translation helpful? Give feedback.
All reactions