Rouji / single_php_filehost

Simple Filehosting Page in a Single PHP File (obvious 0x0 clone)
ISC License
238 stars 31 forks source link

file lifetime #3

Closed ghost closed 3 years ago

ghost commented 4 years ago

Add something who tells u how much the file will be online before deleting, like "you file will be deleted in 45 days!" :P

Rouji commented 4 years ago

Add it where?

(You do have all the values you need to calculate that yourself if you absolutely have to.)

ghost commented 4 years ago

in x0.at

Yes, I can calculate it, but you can add it as a little detail

Probably you can create an option in the source code to enable or disable that "feature"

Rouji commented 4 years ago

No, the question is where would I even display that? The returned text is deliberately nothing but the link so you don't have to do any text manipulation after calling curl

Juliaria08 commented 3 years ago

You cloud make an enpoint if you realy wanted but i think it is not worth it, like have a form for it where you put the url of the file

Rouji commented 3 years ago

You cloud make an enpoint if you realy wanted but i think it is not worth it, like have a form for it where you put the url of the file

Yeah, nah. You're not supposed to really precisely depend on that anyway. The idea is "big file very short, small file very long". The full formula is only there almost as an FYI. A graph would probably help that a lot, but I've just not come up with a good one yet.