phpBBHacks.com - Support resume or use direct link when download attach file?
Get Photoshop help and share your work at PhotoshopForums.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> General phpBB 3 Support and Discussion
 See a User Guidelines violation? Please contact us.
Author Message

congminh1709
New User

Joined: 17 Jul 2008
Posts: 4

PostPosted: August 6th 2008, 11:53 am    Post subject: Support resume or use direct link when download attach file? Reply with quote

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:
http://www.domain.com/forum/download/file.php?id=<file-id-number>


to the direct link ?

Code:
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:
$download_mode = (int) $extensions[$attachment['extension']]['download_mode'];

Replace with
Code:
$download_mode = PHYSICAL_LINK;

When click the link to download attach file, i can download with direct link.
Code:
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:
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.
Back to top
View user's profile Send private message

robbalvey
Not So New User

Joined: 06 Feb 2005
Posts: 25

PostPosted: February 9th 2010, 1:46 am    Post subject: Reply with quote

Was there ever a successful solution to this?

I'm also looking for a way that our attached files in phpbb3 can have the direct link and file extension instead of the file ID reference number.

Thank you for your help!

--Robb
Back to top
View user's profile Send private message

cherokee red
Not So New User

Joined: 01 Apr 2004
Posts: 98
Location: Airdrie, Scotland

PostPosted: February 23rd 2010, 2:08 pm    Post subject: Reply with quote

The way phpBB handles attachments is done for security reasons. There is no easy way of changing it be able to direct link to files. Doing so will decrease the security of your board - not something you really want to be doing
_________________
// My Music // 6 String Romance // 6 String MODs - phpBB MODs Development //
Please don't contact me via PM, MSN or any of my websites for phpBB support or MOD installs.
Back to top
View user's profile Send private message Visit poster's website

robbalvey
Not So New User

Joined: 06 Feb 2005
Posts: 25

PostPosted: February 23rd 2010, 10:18 pm    Post subject: Reply with quote

^ Actually, I've already had it fixed and it works great!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> General phpBB 3 Support and Discussion All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

Copyright © 2001-2012. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.