Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

FileUpload URL Not Working

edited July 2011 in Vanilla 2.0 - 2.8
Hello,
I have used FileUpload before and it works fine. However, I just installed it on a new domain and it is not working.

I am using the latest download of FileUpload and Vanilla 2.0.17.9

When I click on the attached file I get a file not found error message in my browser.
it is trying to get the file at: http://domain.org/forum/index.php?p=/uploads/FileUpload/2f/cc0e44c9b2b3782b75f7173ce14de0.pdf

However, if I remove the index.php?p=/ in the url the file renders. So the file does in fact exist, its just that the path is incorrect.

On the previous versions I would see a paper click along with a proper file name. Can anyone help with this?
Tagged:

Answers

  • Options

    The solution to this is to go to line 19 in link_files.php in FileUpload/views

    change it to: $DownloadUrl = Asset(MediaModel::Url($Media));
  • Options
    Great job on finding the solution and thank you for sharing it with the rest of the community! I'm sure that will help someone, somewhere, sometime!
  • Options
    lucluc ✭✭

    The solution to this is to go to line 19 in link_files.php in FileUpload/views

    change it to: $DownloadUrl = Asset(MediaModel::Url($Media));
    Please link back to original discussion (http://vanillaforums.org/discussion/comment/140612#Comment_140612)
Sign In or Register to comment.