{"repo":"nikosch86/file-upload","free":true,"listed":false,"github":"https://github.com/nikosch86/file-upload","clone":"git clone https://github.com/nikosch86/file-upload.git","description":"minimal file sharing site - self hosted","language":"Shell","stars":154,"topics":[],"license":null,"category":"self-hosted-apps","readme_excerpt":"file-upload most simple file upload container to be used via curl curl -F file=@somefile https://your-url supports expiration by adding ?exp=.. to the querystring, like so: curl -F file=@somefile https://your-url?exp=1w the duration expressions supported are: h - hours d - days w - weeks m - months y - years they can not combined as of now, only one may be used. an exp value that does not parse is rejected with 400 and nothing is stored, so a typo can not silently produce a permanent upload. zero durations and anything beyond 100 years are rejected too — an unbounded value overflows the expiry timestamp and produces a marker the cleaner can not read, which would quietly make the upload permanent. configuration env var default meaning --- --- --- DEFAULT EXPIRY unset expiry applied when the request carries no exp , same syntax as exp . unset means uploads never expire TRUSTED PROXIES 192.168.0.0/16 space separated list of IPs/CIDRs whose X-Forwarded-For is believed, for real client IPs in the access log both are validated at startup, the container refuses to start on a bad value rather than quietly serving without retention. DEFAULT EXPIRY is unset by default so an upgrade never silently adds a retention policy. on a public instance you almost certainly want to set it: without it, uploads made through the web form are permanent, since the form only sends exp when you pick one. note that it applies to new uploads only. the expiry marker is written at upload time, so uploads tha","default_branch":null,"files":null,"tree":[],"storefront":"/r/nikosch86","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nikosch86/file-upload/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}