vot Publish time 2013-10-03 10:15

How to resume the attachment downloading?

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 theconfig_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 !!!$_config['download']['readmod'] = 4;Enjoy!



ravipratap95 Publish time 2013-10-03 15:04

Awesome..
thats what i wanted this makes my site perfect.
but i wonder why the setting is not enabled by defaut?

pgangwani35 Publish time 2013-10-03 16:54

pls teach to insert copy code functioni forget pls PM me

vot Publish time 2013-10-03 21:21

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.

jaideejung007 Publish time 2013-10-05 16:04

Thanks you Vot's
Pages: [1]
View full version: How to resume the attachment downloading?