Download Files from Within a WP Install?

Discussion in 'WordPress' started by MTUser2010, May 29, 2012.

  1. #1
    SOLVED: This was my stupid error mistyping the directory link.


    Hello,

    I am trying to do simple ecommerce with paypal, sell graphic files from my WordPress site. How do I get a link to the file to work, to allow the customer to download the file after they pay? The download folder is in a directory at my site. When I try the links that I know are correct, I get 404 errors from the WP install rather than the file for download.

    Thanks.
     
    Last edited: May 29, 2012
    MTUser2010, May 29, 2012 IP
  2. Imposter

    Imposter Peon

    Messages:
    169
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Could you please give us more information about the problem, for example URLs that are returning 404?
     
    Imposter, May 29, 2012 IP
  3. MTUser2010

    MTUser2010 Active Member

    Messages:
    171
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    70
    #3
    Sure, here is an example: www.mysite.com/directory/downloads/graphicsfile.zip

    This points to a file in a folder in my WP installation. I'd like to provide this link to customers after they pay, but it returns a 404 error.

     
    MTUser2010, May 29, 2012 IP
  4. Imposter

    Imposter Peon

    Messages:
    169
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Have you checked your .htaccess file if there are not any rules that may deny access to the directory where your files are located?
     
    Imposter, May 29, 2012 IP
  5. MTUser2010

    MTUser2010 Active Member

    Messages:
    171
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Thanks for the help. I am very embarrassed to admit it, but this is all due to my error in entering the directory location in the download links. Once I caught my typo "download" should have been "downloads," the downloads from the site worked, no more site 404 errors. At first I thought there was some special process whereby you had to turn off WP managing the folder. I'll be more carefully checking my links next time.
     
    MTUser2010, May 29, 2012 IP
  6. mmedia

    mmedia Guest

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    if this was not a mistake you could use a backup plogin and then dowdlode the files to your computer.
     
    mmedia, May 31, 2012 IP