Replies: 4 comments
-
Currently the links are of fixed length to have a sufficient number of characters to make the enumeration of uploaded media less simple. |
Beta Was this translation helpful? Give feedback.
-
So if I understand correctly, the characters after the userid are 10 characters to help against bruteforcing of the uploaded media? And copying the url from a text field on mobile wouldn't necessarily make what I put as the problem any easier. as I still would have to type it into the url bar of my browser on my computer (or I could just log in to my XBackBone account.), or into the tty where I have no viable way of logging in to XBackBone. |
Beta Was this translation helpful? Give feedback.
-
You can change the URL length in "/app/helpers.php" Search for "function humanRandomString" and change the $length this will be applied to every user though. |
Beta Was this translation helpful? Give feedback.
-
Thank you @rossiscool123, this works exactly the way I want it to, as I am the only current user of my XBackBone instance, the fact that it changes it for all users is not an issue. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
The link given from XBackBone is quite long, not really a huge problem, but it makes it harder to type out from a mobile device to a computer or when a clipboard can't be used. For example in a tty.
Describe the solution you'd like
I'd like to be able to set how many characters the files in the userid folder gets assigned, so that the link looks better and is easier to type out when you can't use the clipboard.
Additional context
E.g. https://i.example.com/userid/abcd.png instead of https://i.example.com/userid/abcdefghjk.png
abcd.png instead of abcdefghjk.png in the userid folder
Beta Was this translation helpful? Give feedback.
All reactions