jkuchar / FileDownloader

Allows you to send files to browser from Presenter. (also can be used without Nette) Allows you to log and restrict access to these files. There is also support for partial downloads and files over 4GB!
http://addons.nette.org/jkuchar/filedownloader
Other
28 stars 10 forks source link

Handled no limit for memory in PHP settings #10

Closed dasim closed 8 years ago

dasim commented 9 years ago
jkuchar commented 9 years ago

There is INF (infinite) constant in PHP. Isn't that what we were looking for? Then there is no need for complex conditions when you are using FDTools... How much memory I have available? Infinite. Fine...

Current provided solution adds code compexity (a little) and everyone needs check, if FDTools returned availableMemory or zero.

What do you think? Is solution with INF better? Do you see any downsides of that solution?