Closed tessus closed 6 months ago
delete_expired_files = { enabled = true, interval = "1h" }
config.toml
echo "test content" >test.txt
curl -F "file=@test.txt" -H "expire:1s" http://127.0.0.1:8000
curl -F "file=@test.txt" -H "expire:1min" http://127.0.0.1:8000
curl http://127.0.0.1:8000/test.txt
test content
file is not found or expired :(
However, the file is shown when using the list endpoint with the correct expiry date (1 min in the future).
Steps to reproduce
delete_expired_files = { enabled = true, interval = "1h" }
inconfig.toml
config.toml
echo "test content" >test.txt
curl -F "file=@test.txt" -H "expire:1s" http://127.0.0.1:8000
curl -F "file=@test.txt" -H "expire:1s" http://127.0.0.1:8000
curl -F "file=@test.txt" -H "expire:1min" http://127.0.0.1:8000
curl http://127.0.0.1:8000/test.txt
Expected
What happened
However, the file is shown when using the list endpoint with the correct expiry date (1 min in the future).