WordPress.org

Ready to get started?Download WordPress

Forums

Upload Related Options (2 posts)

  1. not2bug
    Member
    Posted 4 years ago #

    Hi,

    I installed a fresh copy of WordPress 3.0 RC2 in a fresh WordPress database. After a bunch of configuring things, I have noticed four upload related options in the wp_options table, but I cannot find proper information on them.

    There’s these ones and their settings:

    blog_upload_space	:	[empty]
    upload_url_path		:	[empty]
    upload_path		:	"wp-content/blogs.dir/1/files"
    fileupload_url		:	"http://foobar.com/blogs/files"
    

    So what’s the deal? Which ones are relevant and should be set?

    Thanks.

  2. Frumph
    Member
    Posted 4 years ago #

    $themeinfo = wp_upload_dir();
    
    var_dump($themeinfo);

    You will see the references you need, baseurl, basedir, and all other references you need for your code. This generates the appropriate information per your blog multisite or otherwise, it gives your proper information instead of worrying about getting the option itself.

    $themeinfo['baseurl'];

    This is the method you should be using instead of get_option()

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.