IBResource Опубликовано 31 Августа 2015 Жалоба Поделиться Опубликовано 31 Августа 2015 IntroductionThis plugin enables X-Sendfile support for filesystem downloads in the Invision Power Suite.In short, X-Sendfile is a way of allowing PHP to tell your web server to deliver files to the client after proper authentication checks, logging and other application logic has been performed.This is far more ideal than forcing PHP to handle file transfers directly, as your web server is much more efficient in regards to handling static file transfers.For more information on X-Sendfile and instructions on how to install/enable it on your web server, please refer to the following guide:https://www.makoto.io/blogs/entry/1-setting-up-x-sendfile-with-ips/How it worksIPS4's framework makes enabling X-Sendfile support incredibly easy. This plugin works by hooking into the FileSystem class and overriding the method that normally reads and prints files out in PHP. This offers universal X-Sendfile support everywhere in the suite with just a few lines of code, including attachment and IDM downloads.CaveatsDownload sessions can not be utilized when using X-Sendfile. This means you can not restrict the number of concurrent downloads a user can make in the IPS Downloads application.Download speed throttling is only supported when using Nginx.GithubThis projects Github page can be found here:https://github.com/FujiMakoto/IPS-X-SendfileПерейти на сайт Invision Power Ссылка на комментарий Поделиться на других сайтах Прочее
Рекомендуемые сообщения