WordPress.org

Ready to get started?Download WordPress

Forums

Secure Files
Uploading Error (5 posts)

  1. flowDsign
    Member
    Posted 3 years ago #

    For now this plugin gives me the "You don't have sufficient permissions..." error while trying to upload with WP 3.0.3. For a secure connection inside WP (since I needed the files to be stored inside wp-content or root area), I've made some tweaks with inserting a .htaccess file restricting permissions and modified the code to pass this file from showing in available downloads.
    Other than that, I have to upload the files through FTP and can be downloaded securely from the WP dashboard under Tools > Security Files by other admins for example.
    Fixing the above issues would make this plugin a simple easy to use secure file manager for admins or in my case the clients I give the WP solution and want to have all the back-up files and sources in there.

  2. MikeNGarrett
    Member
    Posted 2 years ago #

    Find this line:

    if (get_bloginfo('version') >= '2.7') {
    		  $sfwp_url = get_bloginfo('wpurl') . '/wp-admin/tools.php?page=secure-files.php';
    	  } else {
    		  $sfwp_url = get_bloginfo('wpurl') . '/wp-admin/edit.php?page=secure-files.php';
    		}

    Replace it with the following code:

    // Set default for versions older than 2.7
    		$sfwp_url = get_bloginfo('wpurl') . '/wp-admin/edit.php?page=secure-files.php';
    		// Set default url for versions up to 2.7
    		if (get_bloginfo('version') >= '2.7') {
    			$sfwp_url = get_bloginfo('wpurl') . '/wp-admin/tools.php?page=secure-files.php';
    		}
    		// Set default url for versions greater than 3
    		if (get_bloginfo('version') >= '3') {
    			$sfwp_url = get_bloginfo('wpurl') . '/wp-admin/tools.php?page=secure-files/secure-files.php';
    		}
  3. flowDsign
    Member
    Posted 2 years ago #

    Thanks for the update,Mike! I'll give it a try with that, though I already found a better solution with another plugin.

  4. MikeNGarrett
    Member
    Posted 2 years ago #

    What plugin are you using, if you don't mind me asking?

  5. flowDsign
    Member
    Posted 2 years ago #

    I'm using Download Manager. It seems like a good plugin, it's well developed and up to date.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic