• Resolved Steven

    (@stgoos)


    Ok – I’ve a fresh install of WordPress 4.9.2 on which I’ve configured the upload path options as follow:

    upload_path: /path/to/domains/justan.example/public_html/media
    upload_url_path: https://media.justan.example/

    This is what I always do on every WordPress installation just to keep uploads out of my core backup which runs via Installatron on DirectAdmin. Of course, I make backups of the uploads folder, but that’s handled via a seperate cron-job and to another location.

    This leaves me with the following setup on the server:

    public_html/   <- WordPress resides in here
    public_html/media/   <- the folder for the subdomain

    When I activate Download Monitor it nicely adds the dlm_uploads folder with the index.html and .htaccess files so my structure is now:

    public_html/   <- WordPress resides in here
    public_html/media/   <- the folder for the subdomain
    public_html/media/dlm_uploads/   <- the folder for DLM uploads
    public_html/media/dlm_uploads/index.html
    public_html/media/dlm_uploads/.htaccess

    So far so good 🙂

    However – when I upload a document via Download Monitor it goes wrong:

    • the upload itself works BUT
    • it doesn’t upload into /media/dlm_uploads/ but into /media/ instead… which is of course not what one would expect / want.

    Anyone any idea how this can be fixed? Perhaps via defining a constant in the wp-config.php? Or adding some lines to functions.php?

    Btw – it would be wicked as well if the dlm_uploads folder could be set/renamed via a setting. I don’t necessarily want to have the _uploads in the folder name 😉
    Perhaps something to consider for the next release of this awesome plugin!

    • This topic was modified 7 years ago by Steven. Reason: Whoops - it's of course Download Monitor instead of Download Manager
    • This topic was modified 7 years ago by Steven Stern (sterndata).
Viewing 3 replies - 1 through 3 (of 3 total)
  • Barry Kooij

    (@barrykooij)

    Hey Steven,

    Are you uploading your files while adding/editing a download or via the media editor. We only place files in the dlm_uploads folder if you upload via the add/edit download screen.

    Kind Regards,

    Barry Kooij

    Thread Starter Steven

    (@stgoos)

    Hi Barry,

    Thanks for the feedback. I thought I was doing that however (in my enthusiasm to set up the site) I was actually dragging a PDF document into the top section which seems to be a regular post section therefor using the regular upload process :S

    See: https://imgur.com/dJx7eOV

    Does it actually makes sense to have that post section on that page / does it have any purpose for DLM?

    Thanks for the hint and glad to see that it works as it should work.

    Btw – when I delete a download the file remains on the server (in /dlm_uploads/) and it is still available through the media manager. is that the normal behavior?

    Cheers,

    Steven

    Barry Kooij

    (@barrykooij)

    Hey Steven,

    Glad to hear it’s all working now! If you found my reply helpful and like the plugin, I’d be super happy if you could spare a minute to leave us a review: https://wordpress.org/support/plugin/download-monitor/reviews/

    Btw – when I delete a download the file remains on the server (in /dlm_uploads/) and it is still available through the media manager. is that the normal behavior?

    We do indeed do not remove the actual file if you remove the version. We don’t do this because WordPress doesn’t delete file either if you remove the “link” to them (e.g. the placement in a post).

    Kind Regards,

    Barry Kooij

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘DLM doesn’t upload to /dlm_uploads/’ is closed to new replies.