Support » Plugin: Custom Upload Dir » [Plugin: Custom Upload Dir] Uploading to zero folder..

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ulfben


    It seems the global $post_id variabel is no longer available. I’ll have to update the plugin soon. Sorry for the inconvenience.

    Not sure if this helps but I was having an issue where nothing was being uploaded to the folder I directed by username. I looked at the code and noticed that they are returning the wrong variable.

    function cud_get_author_name($author_id){
            $curuser = get_userdata($author_id);
            return sanitize_title($author->user_nicename);//->display_name

    Changing $author in the return sanitize_title function to $curuser fixed my issue.

    This is on line 122 in file custom-upload-dir.php in wp-content/plugins/custom-upload-dir/ folder.

    Plugin Author ulfben


    Thanks. This has been fixed in the latest version. I would appreciate it if you tried the current development version though, as it has many improvements.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Custom Upload Dir] Uploading to zero folder..’ is closed to new replies.