Repository navigation
Replies: 2 comments
|
Sure we can give it a default value, that is a very easy fix. |
I would not worry about that. There are more than 128 bits of randomness in those URLS. |
|
Sure we can give it a default value, that is a very easy fix. |
I would not worry about that. There are more than 128 bits of randomness in those URLS. |
Uh oh!
There was an error while loading. Please reload this page.
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 theORIGINALvariant, 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.
All reactions