Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By J-Dog on
So, we are beginners at Drupal. We uploaded content (PDFs and DOCs) and we are looking to link these attachments to the content and are using the tags, and the links are giving us error pages that say the attachments cannot be found. What is wrong? I have a feeling the tag is wrong, however I thought that this was the way we were supposed to do it.
We have the "Full HTML" selected for each page.
Comments
own observations
you are uploading (ftp?), then pointing to the file? do you have the file system setup (site configuration), usually /files?
a construct like
<a href="/files/filename">title</a>
(public file system) might work; adjust to your circumstances. if your files have spaces and/or special characters, i am not sure what will happen (web servers don't like those).a test: put your fully-resolved path in the url and see what comes up.
drupal seems to prefer handling stuff as attachments via the upload module (node attachment), and you also need to have the proper permissions to view those attachments. these may be looked at as "foreign" files, even if it is within the drupal file system.
just thoughts. good luck!
watch out for the cross-post...