Illegal websites should not initiate any form of manual service requests to our staff. It is strictly prohibited to use honmau Media's technical support services and products to engage in any illegal activities. If discovered, no technical support will be provided.×
Current location:home> news > help and support

Solutions for Discuz3.4 large attachments that cannot be downloaded

'Discuz3.4大附件无法下载的解决办法'

This tutorial is only for the nginx environment. nginx can be configured as follows to solve this problem:

Nginx has good support for sendfile, and X3.4 also supports sending attachments to customers through sendfile. For resource download forums, it can significantly reduce the resource consumption of PHP to read attachments.

1. First check whether there is a sendfile off configuration in Nginx's configuration file. If there is, change the sendfile to on.

2. Open the forum configuration file config/config_global.php,

Find the following code:

$_config['download']['xsendfile']['type'] =0

Change 0 in the above code to 1. Then find the following code:

$_config['download']['xsendfile']['dir'] = '/down/';

Make corresponding modifications according to the directory where the forum is located:

If the forum is placed in the root directory, change/down/to/data/attachment/forum/

If the forum is placed in the bbs directory, change/down/to/bbs/data/attachment/forum/

And so on.

© Website copyright and disclaimer

1.[honmau Media] independently owns the copyright of all materials on relevant pages of this website;

2. No one is allowed to copy it without the express written permission of [honmau Media];

3. The articles that do not indicate "honmau Media" on this website are all from the Internet and are only for everyone to learn and refer;

4. If there is any infringement/violation/irregularity, please contact customer service QQ or email to delete it, please understand;

5.[honmau Media] reserves the right to correct, modify and update this statement at any time.legal notice

Message Board
* Contact customer service for urgent issues
submitted
submission
Working days: 8:30 - 22:00 Online QQ

customer service

Company Introduction
top