| Author |
Message |
mikemc New Member


Joined: Dec 14, 2007 Posts: 12
|
Posted:
Thu May 07, 2009 3:58 pm |
|
Every time I post a file via the attachment mod the file uploads fine (to "modules/forums/file" folder) and appears in the post OK, the in-line link is fin (i.e. [domain name]/modules.php?name=Forums&file=download&id=##) but the resulting link goes to a path "[domain name]/modules/Forums/modules/Forums/files/[file.ext]"
I've looked for the issue in these forums, all over the net and through all my files but cannot seem to find where I've gone wrong. Anyone else seen this issue? |
|
|
|
 |
evaders99 Former Moderator in Good Standing

Joined: Apr 30, 2004 Posts: 3221
|
Posted:
Thu May 07, 2009 11:37 pm |
|
Try setting the path to just /files |
|
|
|
 |
mikemc New Member


Joined: Dec 14, 2007 Posts: 12
|
Posted:
Fri May 08, 2009 6:28 am |
|
I tried that, and the links already in posts will then work, but the upload for new posts fail because the destination [domain name]/files/ does not exist...... It has to be somewhere in the uploads or forum display file, but I cannot seem to find it. |
|
|
|
 |
mikemc New Member


Joined: Dec 14, 2007 Posts: 12
|
Posted:
Mon May 25, 2009 6:19 am |
|
I believe I know where the issue is being generate, but cannot find in the code where the action is performed.
I think the displayed link translation is adding a second "modules/forums/" to the translated link path. Uploading files works correctly, and the files are stored in the correct folder on the server. But the link in a post is picking up an extra PHPbb_Root_Path somewhere.
When you attempt to download the file from a post, the link is directing towards (notice the duplication of folder paths "modules/forums/").
Anyone have an idea which file performs the filename determination and storage to the database?
Or put another way;
When I click an attachment link in a post, what file translates "http://www.YourDomain.com/modules.php?name=Forums&file=download&id=23" into this; "http://www.YourDomain.com/modules/Forums/file/filename.txt"? |
|
|
|
 |
mikemc New Member


Joined: Dec 14, 2007 Posts: 12
|
Posted:
Mon May 25, 2009 8:29 am |
|
OK, I got this "fixed" for the moment, but located the avenue for initial issue investigation. In the forum control panel under EXTENSIONS > EXTENSION GROUP CONTROLS, I changed the download mode to "INLINE" and all works fine now. Therefore I assume the issue resides in the "Physical" mode. |
|
|
|
 |
evaders99 Former Moderator in Good Standing

Joined: Apr 30, 2004 Posts: 3221
|
Posted:
Mon May 25, 2009 1:40 pm |
|
Yes, not sure what physical mode is doing. For now, use inline |
|
|
|
 |
|
|
|
|