mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
[QUESTION] Can max-downloads and max-days used together? #175
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MayankFawkes on GitHub.
what if i send
max-downloadsandmax-daystogether in one header will it work according?Lets say i set
max-download: 5andmax-days: 5Thanks
@paolafrancesca commented on GitHub:
hi @MayankFawkes
first of all: the file won't be deleted according to that two values, only access to it will be denied (file purging is related to a setup value when starting the server)
as for your question: yes, they will work together (https://github.com/dutchcoders/transfer.sh/blob/master/server/handlers.go#L660-L663)
we check if
max-downoadis reached, and return error/deny access if soif not we check the
max-daysand do the same