Changing UPLOAD_DIR global variable breaks the plugin

in Download Manager Free

Viewing 5 posts - 1 through 5 (of 5 total)
Apr 27, 2023 at 2:41 pm
#186258
Participant
Andy Boehm
OP

We’re hosting our site on Siteground and we’re using Nginx Direct Delivery to cache and server static files. This is bypassing the secure folder and making our files publicly accessible.

I’m tying to move the upload directory to outside of our public web folder by defining UPLOAD_DIR in wp-config.php. This causes the files to be uploaded to my secure directory (I see the file on the server). But when I save the Download File in WP Dashboard the __wpdm_files metadata is not properly set. It shows NO file. Attempting to download warns that no file is attached.

Is there a way to change the UPLOAD_DIR and still have this plugin work?

Apr 27, 2023 at 4:01 pm
#186267
Keymaster
Shahjada
Staff

defiening custom upload dir in wp-config.php should work fine, please give me temporary wp-admin login info in a private reply to check.

Apr 27, 2023 at 4:54 pm
#186273
Participant
Andy Boehm
OP
This reply has been marked as private.
Apr 27, 2023 at 5:18 pm
#186282
Participant
Andy Boehm
OP

I’m not seeing my replies appear here. Did you receive the private reply?

After removing the UPLOAD_DIR the plugin works again (that is, the __wpdm_files metadata is populated with the file name)

May 8, 2023 at 5:18 pm
#186560
Keymaster
Shahjada
Staff

For some strange reason, your reply was marking as SPAM by akismet. However, I’m whitelisted them now. Your didn’t send me the site url.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic "Changing UPLOAD_DIR global variable breaks the plugin" is closed to new replies.