Support » Plugin: Download Monitor » Access denied (still)

  • Resolved remjii

    (@remjii)


    This doesn’t work in Pantheon hosted environments. The file path tries to point to /files/dlm_uploads/ and you can’t change it which results in access denied. Reverting to earlier version as you mentioned fixes it to /wp-content/uploads/dlm_uploads.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Razvan

    (@raldea89)

    Hello @remjii,

    Thank you for the info, you are completely right. Just tested on a Pantheon hosted environment and I could see the files structure. Seems like the uploads folder from the wp-content directory is just a shortcut for the /files/ directory outside of the WordPress installation, so the file you want to download actually lies in the /files/dlm_uploads directory, thus giving the Access Denied.

    In version 4.5.92 of Download Monitor we added another setting from which the user can add another path for files to be downloaded if they are not in the WordPress installation directory or Uploads directory.

    Please go to dashboard > Downloads > Settings > Advanced > Miscellaneous > Other downloads path and add the following string: /files . Before you do this please BACKUP your DATABASE.

    Please let us know if this solved your problem.

    Kind Regards!
    Razvan

    Thread Starter remjii

    (@remjii)

    Thanks for the response @raldea89

    That doesn’t seem to work still because although the file path is technically correct /files/dlm_uploads, the outside world must still must access file with the typical /wp-content/uploads/dlm_uploads/. Now it just says “page not found”.

    Also, would be nice if this setting was under Network Settings in a multi-site installation of WP instead of having to go through each site to set this.

    • This reply was modified 1 year, 9 months ago by remjii.

    We are experiencing the same issue. Possibly of note is the fact that our wp-content/uploads directory is symlinked outside of the web root and shared across our deployments.

    Updating the Other downloads path to point to the actual path on the server has resolved this issue.

    Thread Starter remjii

    (@remjii)

    @gussalvador so you used /files and it worked for you?

    Plugin Author Razvan

    (@raldea89)

    @remjii are you trying to download the file or redirect to it?

    Warmly,
    Razvan

    Thread Starter remjii

    (@remjii)

    @raldea89 redirect to it for most of them.

    Plugin Author Razvan

    (@raldea89)

    Hey @remjii

    Seems like the redirect functionality indeed poses a problem. We’re looking into a solution and we’ll release an update regarding this as soon as we find one.

    Warmly,
    Razvan

    Thread Starter remjii

    (@remjii)

    @raldea89 any update on fix for redirect functionality?

    Plugin Author Razvan

    (@raldea89)

    Hey @remjii ,

    It will be released in our next update. You can have a look at https://github.com/WPChill/download-monitor/issues/914 if you want a sneak-peak ( – if you want to try on a dev server – possible not the final code, but was verified with Pantheon hosted environment and it was working ).

    Kind Regards!
    Razvan

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Access denied (still)’ is closed to new replies.