changing directorys
-
Hello @infernoprime,
Hope you are well. Do you want to change
download-manager-filesfolder to another? Please kindly check and let me know.Thank you and regards
Yes, if possible. I don’t like having a single folder and just dumping all the files in there.
For upload file directory you can use this code in yourt theme’s
functions.phpfile:if (!defined('UPLOAD_DIR')) {
$upload_dir = wp_upload_dir();
define('UPLOAD_DIR', $upload_dir['basedir'] . '/my-custom-downloads/');
}
please kindly check if it woeks for you. Please kindly check.Thank you and regards
First, I want to make sure of something. This is to change the location not the name, correct?
Yes, it is upload location download manager files. You can try and check if it works for you. Please kindly check.
Thank you
Give me a day or two and ill check back.
Ok, sure. Please kindly check.
Thank you
I’m sorry I forgot to ask but what directory is this relative to?
Those files you are attaching for download, that upload folder. Please kindly let me know if you have more queries. Please kindly check.
Thank you
Is there no easy way to add sub folders?
if (!defined('UPLOAD_DIR')) {
$upload_dir = wp_upload_dir();
define('UPLOAD_DIR', $upload_dir['basedir'] . '/download-manager-files/subfolder-name/');
}
you can try this too if you want subfolder of download-manager-files , Please kindly check.Thank you
1.I just want to make sure I understand this correctly. This code below will allow me to change the location where the downloads are stored OUTSIDE of the wp-content directory?
2.The other code that you gave me. I wanted to use multiple sub folders for a category like structure if possible.
if (!defined('UPLOAD_DIR')) {
$upload_dir = wp_upload_dir();
define('UPLOAD_DIR', $upload_dir['basedir'] . '/my-custom-downloads/');
}For your requiremt 1, Yes
For your requirement 2, it may require to take customization services, you may knock here with your requirement, https://www.wpdownloadmanager.com/download/custom-upgrade-service/. Please kindly check.Thank you
Could I use the external link feature to specify that and use it for sub folders ?
For any custom requirements implementation, you may please knock here with your requirements, https://www.wpdownloadmanager.com/download/custom-upgrade-service/. Please kindly check.
Thank you
The topic ‘changing directorys’ is closed to new replies.