WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Linking text files on pages for reader access (4 posts)

  1. zeromost
    Member
    Posted 2 years ago #

    How do you make a linked text file accessible for reader access without any need to enter username and password? This should be very simple, but I'm stuck.
    All I want to do is to have a list of accessible text files on a WordPress page. I'm using Windows 7.
    I have uploaded the files to the appropriate directory, changed the Permissions to Read-only for General Use, gone to Page edit on the Dashboard, inserted the correct ftp link, and updated the page. When the link is clicked, the user is always asked for (my) ftp username and password. When and only when that is entered is access to the text file made available.
    How can these links be set up to point to the usual directory:
    htdocs/wp-content/uploads/2012/01/filename.txt
    and allow viewing of the file within WordPress without being prompted for a username and password?
    Thanks.
    SG

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Upload the files via Add Media and add the resulting links to a page on your site.

  3. Why are you inserting ftp links.. why not sure create links like you would for any other type of media.

    <a href="http://www.yourdomain.com/wp-content//uploads/2012/01/filename.txt">blah blah</a>

    These text files should be uploadable using the media upload. I don't see why you are talking about ftp.

  4. zeromost
    Member
    Posted 2 years ago #

    Thank you, Christine. That solved my problem. I used ftp://... because that's the address I use to upload and place the file. It didn't occur to me to think /wp-content/uploads was directly accessible through my own domain.com. Just a symptom of ignorance.
    SG

Topic Closed

This topic has been closed to new replies.

About this Topic