Storing uploaded files
-
I have a question regarding the storing of uploaded files.
I know where my jobs-dir is and i have access to it. I also tried creating a new folder at the same level and changing the directory in the ‘job-postings.php’ file and it works.
if( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
define(‘JOBPOSTINGSVERSION’, ‘2.3.6’);
define(‘JOBPOSTINGSPATH’, plugin_dir_path( __FILE__ ));
define(‘JOBPOSTINGSURL’, plugin_dir_url(__FILE__));
define(‘JOBPOSTINGSFILESDIR’, ABSPATH . ‘../jobscv/’); (changed the jobs-dir to jobscv)I also know about the following:
On some servers it is not possible to use “Secure Location” outside of the site’s root folder, because of the limitet permissions.My questions now are:
1. Where can i see if i have permission or not?I actually want the files to be redirected to an e-mail address or a folder somewhere in the cloud, because now my client has to get to the backend to find the uploaded files.
2. So i wonder if it’s possible to change something in one of the files like the one above to make the uploaded files go to some defined url (if i want it to go to a folder somewhere in the cloud) and if not to an e-mail address
- The topic ‘Storing uploaded files’ is closed to new replies.