Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration option to make long the default #201

Open
ofifoto opened this issue Sep 20, 2023 · 4 comments
Open

Configuration option to make long the default #201

ofifoto opened this issue Sep 20, 2023 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers python ui

Comments

@ofifoto
Copy link

ofifoto commented Sep 20, 2023

Hi there, great project! :)

I'd love if there was a way to make 'long' slugs/URIs the default (or enforced if that's easier) for both the main page as well as the APIs. Would be handy for newer installs that have a small ID space initially or just if you'd like a 'bit' of extra protection

@supakeen
Copy link
Owner

supakeen commented Sep 21, 2023

Sounds like a good idea indeed. I'd assume we'd hide the select-able option on new-paste page if this is turned on in configuration?

As far as the API goes; I don't think there's an option there to select long paste-identifiers which might be a separate feature request. It would use whatever is configured.

@supakeen supakeen added enhancement New feature or request python ui labels Sep 21, 2023
@ofifoto
Copy link
Author

ofifoto commented Sep 21, 2023

Indeed :)

@TehPeGaSuS
Copy link

I couldn't agree more that longer URIs would be better to avoid collisions between filenames on high traffic websites.

@supakeen supakeen added the good first issue Good for newcomers label Jan 9, 2024
@TehPeGaSuS
Copy link

TehPeGaSuS commented Jan 12, 2024

Since longer URIs are better, why not add checked on this line?

People can then uncheck it to have shorter paste IDs.

I'd make the line to be <input type="checkbox" name="long" checked hidden> and forget about it 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers python ui
Projects
None yet
Development

No branches or pull requests

3 participants