18.02.2020 2160
Cloud Desk 3 has a complete file sharing feature built in.
Now that is great YEAHHHHH, but also a big security risk if used wrong. Therefore we really suggest to use a folder outside the web root which is not accesible by browser.
In your include/db.php file you have following variable:
define('CLIENT_UPLOAD_DIR', '');
You will need to enter the full path to your directory created outside the web directory, for example:
define('CLIENT_UPLOAD_DIR', '/home/yourdomain/upload/');
Just below you will find another two variable to encrypt the communication when loading the image or file inside the chat.
// File encryption key/iv
define('JAK_FILE_SECRET_KEY', 'file_secret_key');
define('JAK_FILE_SECRET_IV', 'file_secret_iv');
Please change following value file_secret_key and file_secret_iv to something private.
Our software will handle the rest.