By eiworker on
Hello I am a new web admin for several different sites that use drupal.
I am creating a site for a new department and am having some trouble.
I created a new page, uploaded a pdf file, and linked it in the page for users to download it.
However anytime someone (even I the site admin) clicks the link it redirects to another page saying "Page not found"
Any ideas how to fix this?
I did a search in the forum but could not find anything.
Thanks
eiworker
Comments
Check the permissions...
At Admin->User->Permissions, Anonymous and Authenticated Users should have access to "view uploaded files"
Otherwise, the only thing i can think of is making sure your link is working and that the folder has read permissions properly assigned.
-OrbFace9
Permissions
They already had access to view uploaded files.
Path to file?
If you are linking to the PDF using a Wysiwyg editor you might want to check the path that it gave the file. Sometimes the editors will use a path to the upload directory that doesn't have a preceeding slash. In that case, if the page you are on isn't at the root level it will be using a relative path that doesn't go to the file.
Try looking at the file path in the source and see if it points to your file. If it doesn't, force the preceeding slash in the editor link field. That might be the cheese.
Path
I checked as far as I can tell the URL its giving is correct. There is no missing slash
More info
So i found it has something to do with the Path.
If I have:
mysite.com/files/name.pdf
It will not work, but if i change it to:
mysite.com/system/files/name.pdf
It works fine. However it is not inserting them correctly and I cannot figure out why. I attempted to alter the file they go into however it claims system/files does not exist
Any ideas?
I attempted
sites/mysite.com/files and it works except now when you click a pdf instead of downloading it, it opens it in browser.
And they have huge ugly urls usually like
http://mysite.com/sites/mysite.com/files/name.pdf
Thanks for any help