Перейти к контенту

Рекомендуемые сообщения

Introduction

This 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 works

IPS4'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.

Caveats

  • Download 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.

Github

This projects Github page can be found here:
https://github.com/FujiMakoto/IPS-X-Sendfile



Перейти на сайт Invision Power
Ссылка на комментарий
Поделиться на других сайтах

Гость
Эта тема закрыта для публикации сообщений.
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.