Ready to get started?Download WordPress


Upload Related Options (2 posts)

  1. not2bug
    Posted 4 years ago #


    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?


  2. Frumph
    Posted 4 years ago #

    $themeinfo = wp_upload_dir();

    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.


    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


No tags yet.