Changing UPLOAD_DIR global variable breaks the plugin

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

Andy Boehm
Participant

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?

#186267

Shahjada
Keymaster

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.

#186273

Andy Boehm
Participant
This reply has been marked as private.
#186282

Andy Boehm
Participant

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)

#186560

Shahjada
Keymaster

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.