somenonymous / OshiUpload

Ephemeral file sharing engine
Do What The F*ck You Want To Public License
164 stars 23 forks source link

PUT request with destroy-after-download + expiry 7d? #3

Closed retorquere closed 2 years ago

retorquere commented 3 years ago

What URL should I use to get a file with 7d expiry and destroy after download?

somenonymous commented 2 years ago

It seems currently there is no possibility to do that. Next commit will cover that case.

somenonymous commented 2 years ago

It's now possible with the following requests:

curl -T /path/to/file "https://oshi.at/?autodestroy=1&expire=10080" or curl -T /path/to/file https://oshi.at/file/10080?autodestroy=1 or curl -T /path/to/file https://oshi.at/file/-1?expire=10080

Check https://oshi.at/cmd for updated information.