-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: ability to set a default Max-Downloads and Max-Days #525
Comments
hello @danfinn are you talking about a self-host instance of transfer.sh are you? regarding a default |
Hi @aspacca this would be for self hosted. I suppose that would work for a default setting of Max-Days, what I'm more interested in is a default setting for Max-Downloads. |
it seems something that's more related to the client side of the request |
Setting it on the client side allows people to change it or tweak it to set it to whatever they want. We would like the ability to force it (or at least set a default so that if it's not set by the client) to 1 day for example. |
if we are talking about it a little more unclear to me what's the goal, server side, to set |
Sorry, you are correct. I wasn't thinking correctly, it's been a while since I posted this. What we would really like is to be able to enforce a limit on downloads. Essentially we are looking for a secure place to upload a file that can only be downloaded once (or however many times we set in the config). We would be using this in the same way we leverage another project called One Time Secret: With that you share a secret with someone but they can only see it once and then it's gone. We would like to be able to accomplish the same thing with file transfers using transfer.sh. |
oki, got it I'd suggest that if a @stefanbenten what do you think? |
I think having the possibility of enforcing Max-Download or Max-Days is neat, however i do agree that it would need some frontend changes to make users aware of it. |
I would add the use case of a small self-hosted server that doesn't have a lot of disk space, and having a hard time limit would help clean up old files. Edit: I see there's the PURGE_DAYS envvar, so that already has a way to be solved, can the other problem be solved in the same way? |
@Martinligabue , yes, you are right, beware that the case for @danfinn was to be able to force a btw, @danfinn : if you have a proxy like nginx or similare in front of the service you can just add/rewrite the headers there |
For my use case it would be really useful if it was possible to set a default for Max-Downloads and Max-Days so that it doesn't have to be specified with every upload. Is this possible?
The text was updated successfully, but these errors were encountered: