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

Feature Request: Environment variables for defaults #131

Closed
adammckay opened this issue Jan 28, 2024 · 4 comments
Closed

Feature Request: Environment variables for defaults #131

adammckay opened this issue Jan 28, 2024 · 4 comments
Labels
invalid This doesn't seem right

Comments

@adammckay
Copy link

This is the best application for single file upload that I have used to this point. It is nearly perfect for my use case! I hope that if you fulfill the feature request for user uploads that it is something that is off by default.

At any rate, I would like to be able to configure the default values of the 3 options on the main page: download limit, expiry, and password. It would be nice to have 6 environment variables:

limit_checked: true/false
limit_value: integer
expiry_checked: true/false
expiry_value: integer
password_checked: true/false
password_value: string

I find that when I quickly drag and drop files, I have to set those values every time. Defaults decided by the admin would be nice.
Thanks and keep up the great work!

@Forceu
Copy link
Owner

Forceu commented Jan 28, 2024

Hi, once you change the values and upload a file, these values would be the new defaults. Does this not happen?

@adammckay
Copy link
Author

adammckay commented Jan 28, 2024 via email

@Forceu
Copy link
Owner

Forceu commented Jan 28, 2024

No problem, good to hear that it's working :)

@Forceu Forceu closed this as completed Jan 28, 2024
@Forceu Forceu added the invalid This doesn't seem right label Jan 28, 2024
@MalteMagnussen
Copy link

MalteMagnussen commented May 27, 2024

Hi, once you change the values and upload a file, these values would be the new defaults. Does this not happen?

Nice! It does indeed work @Forceu

But it doesn't persist across restarts, sadly.

Could this be re-opened with "very low prio"? :)

Not important, but would be "nice to have".

Realistically it would only save the users 1-2 clicks per person every time the Deployment is restarted.

EDIT: Now that we are using Litestream to persist the metadata in sqlite, this is no longer relevant it seems like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants