FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » 3.02 Attached Files Can Not Be Downloaded (404 errors when files attached to messages are clicked to download)
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
3.02 Attached Files Can Not Be Downloaded [message #163811] Thu, 02 December 2010 09:17 Go to next message
tw_nick   United States
Messages: 57
Registered: October 2010
Location: Dallas, TX
Karma: 0
Member
add to buddy list
ignore all messages by this user

I'm running 3.02, and users have no problems attaching files to their messages. However, when the posting user - or any other user - attempts to download the attached file, they get a 404 error. I've verified in 'files' subdirectory that the attachments are present as *.atch files. I see nothing in the error log. Am I the only one with this problem? Where do we start in identifying the problem?
Re: 3.02 Attached Files Can Not Be Downloaded [message #163812 is a reply to message #163811] Thu, 02 December 2010 09:39 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3631
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Looks like it's working on this forum.

Debug it!
Re: 3.02 Attached Files Can Not Be Downloaded [message #163813 is a reply to message #163812] Thu, 02 December 2010 09:48 Go to previous messageGo to next message
tw_nick   United States
Messages: 57
Registered: October 2010
Location: Dallas, TX
Karma: 0
Member
add to buddy list
ignore all messages by this user

Interestingly enough, I find that if I right-click the attachment, copy the shortcut, and post it to the browser's address bar, the download prompt comes up as it should. However, just clicking the file gives me the 404.

When I compare the URLs from the copy/paste and the "direct click," they are exactly the same.

FYI, same issue on both Chrome and MSIE browsers.

Any other "debugging" suggestions you might offer would be helpful. Smile

[Updated on: Thu, 02 December 2010 09:58]

Report message to a moderator

Re: 3.02 Attached Files Can Not Be Downloaded [message #163814 is a reply to message #163813] Thu, 02 December 2010 11:16 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Does apache have rights to read the files directory in the DATA_ROOT?

Re: 3.02 Attached Files Can Not Be Downloaded [message #163815 is a reply to message #163814] Thu, 02 December 2010 11:17 Go to previous messageGo to next message
tw_nick   United States
Messages: 57
Registered: October 2010
Location: Dallas, TX
Karma: 0
Member
add to buddy list
ignore all messages by this user

I'll check. What should the permissions be for the directory? 666?
Re: 3.02 Attached Files Can Not Be Downloaded [message #163816 is a reply to message #163815] Thu, 02 December 2010 11:23 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
644 should be enough on the files and for the directory it should be 755 i think

Re: 3.02 Attached Files Can Not Be Downloaded [message #163817 is a reply to message #163816] Thu, 02 December 2010 11:51 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3631
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Also try with another browser, clear cache, etc.
Re: 3.02 Attached Files Can Not Be Downloaded [message #163818 is a reply to message #163817] Thu, 02 December 2010 12:00 Go to previous messageGo to next message
tw_nick   United States
Messages: 57
Registered: October 2010
Location: Dallas, TX
Karma: 0
Member
add to buddy list
ignore all messages by this user

Tried both IE and Chrome. Cleared cache on both and tried again with both old and new permissions. No change.

What puzzles me is that if I grab the URL from the link and paste it in the address bar, the file will download. It's something about how the link is being handled (by the php???) if it is clicked.
Re: 3.02 Attached Files Can Not Be Downloaded [message #163819 is a reply to message #163818] Thu, 02 December 2010 13:01 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Admin control panel
global settings
Attachment Referrer Check:

Yes/No ?


Re: 3.02 Attached Files Can Not Be Downloaded [message #163820 is a reply to message #163819] Thu, 02 December 2010 13:03 Go to previous messageGo to next message
tw_nick   United States
Messages: 57
Registered: October 2010
Location: Dallas, TX
Karma: 0
Member
add to buddy list
ignore all messages by this user

=YES
Re: 3.02 Attached Files Can Not Be Downloaded [message #163821 is a reply to message #163820] Thu, 02 December 2010 13:06 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Try setting it to NO =)

Re: 3.02 Attached Files Can Not Be Downloaded [message #163822 is a reply to message #163821] Thu, 02 December 2010 13:07 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Or well, shouldnt matter for 404 error. It smells config somehow

Re: 3.02 Attached Files Can Not Be Downloaded [message #163823 is a reply to message #163821] Thu, 02 December 2010 13:27 Go to previous message
tw_nick   United States
Messages: 57
Registered: October 2010
Location: Dallas, TX
Karma: 0
Member
add to buddy list
ignore all messages by this user

We have a winner! Razz
Setting it to 'no' worked. Thanks, guys. Kudos!
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Forum Statistics in 3.02
Next Topic: Main Page w/ Links breaks the forum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Dec 12 07:25:04 EST 2017

Total time taken to generate the page: 0.00589 seconds