Welcome to MenacePkerz forum. To help keep the forum and server up please donate.

Thank you Smile

Join the forum, it's quick and easy

Welcome to MenacePkerz forum. To help keep the forum and server up please donate.

Thank you Smile
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Creating direct link

 :: MenacePkerz :: Guides

Go down

Creating direct link Empty Creating direct link

Post  Admin Mon May 09, 2011 1:07 am

phpBB 3 included attach files function, but I want to ask the way how to support resume when download attach files with some Internet download manager like as IDM, falshget,... ? Or how to change the download as id

CODE: ----------SELECT CONTENT
http://www.domain.com/forum/download/file.php?id=<file-id-number>


to the direct link ?

CODE: ----------SELECT CONTENT
http://www.domain.com/forum/files/<file-name>


I changed sucessfully download method from id link to direct link by these steps at localhost:
Open file \download\file.php, find
CODE: ----------SELECT CONTENT
$download_mode = (int) $extensions[$attachment['extension']]['download_mode'];

Replace with
CODE: ----------SELECT CONTENT
$download_mode = PHYSICAL_LINK;

When click the link to download attach file, i can download with direct link.
CODE: ----------SELECT CONTENT
http://localhost/forum/files/<file-name>


But when I upload this file.php to run on the host, i only can download file with this url
CODE: ----------SELECT CONTENT
http://www.domain.com/forum/files/2_9959db6b9ad270aab59e7df34b1ba1b6


Although after rename file name and file extension, i can open this file well, but why 2_9959db6b9ad270aab59e7df34b1ba1b6 and how to fix it?

Thank for reading my post.
Admin
Admin
[D]eveloper
 [D]eveloper

Posts : 37
Points : 137153
Reputation : 0
Join date : 2011-04-04
Location : Australia

https://menacepkerz.forumotion.com

Back to top Go down

Back to top


 :: MenacePkerz :: Guides

 
Permissions in this forum:
You cannot reply to topics in this forum