| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 5319|Reply: 4
Collapse the left

How to resume the attachment downloading?

[Copy link]

 Russia

Post time: 2013-10-03 10:15
| Show all posts |Read mode
By default, Discuz does not support Pause/Resume the downloading of attached files.

But that great possibility is already built-in in Discuz!

The only thing you need to do for enable resuming - it is to slightly change one setting in your config !

Just look inside the  config_global.php and see this as default value:

$_config['download']['readmod'] = 2;

What this means?
I can explain.

Discuz supports FOUR methods of downloads:
1=fread,
2=readfile,
3=fpassthru,
4=fpassthru+multiple_ranges

First 3 methods do not supported a download resuming.
But the FOURTH method SUPPORTS DOWNLOAD RESUMING!

So, you just need to change the above setting to 4 !!!
  1. $_config['download']['readmod'] = 4;
Copy the Code
Enjoy!



Rate

Number of participants 3Rating +3 Collapse Reason
pgangwani35 + 1 Powerfull!
Ananthavas + 1 Nice!
Pme + 1 Very nice!

View Rating Log

Post time: 2013-10-03 15:04
| Show all posts
Awesome..
thats what i wanted this makes my site perfect.
but i wonder why the setting is not enabled by defaut?
Post time: 2013-10-03 16:54
| Show all posts
pls teach to insert copy code function  i forget pls PM me

 Russia

 Author| Post time: 2013-10-03 21:21
| Show all posts
download: config/config_global.php
Edit it by any text editor.
Make described change.
Save the file.
Upload the file back.
Clean the Cache from AdminCP.
Post time: 2013-10-05 16:04
| Show all posts
Thanks you Vot's
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-21 19:39 GMT+3 , Processed in 0.051756 sec., 9 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list