WordPress.org

Ready to get started?Download WordPress

Forums

My Media Uploads get hardcoded absolute filenames (2 posts)

  1. langsuyar
    Member
    Posted 5 years ago #

    I'm trying to figure out how my media uploads end up with a hardcoded absolute filename, rather than just starting with ../wp-content.

    When I upload an image and check the database entries that WordPress created, I end up with with a _wp_attached_file key of "D:\inetpub\worch\wp/wp-content/uploads/2008/11/foo.jpg". That's BS, since a) this is a UNIX server which doesn't have a d:\ drive, and b) hardcodes the file location.

    This blog used to be on a Windows IIS server, but I moved it to a UNIX server. Somewhere in the settings, something is still making WordPress hardcode an absolute (and obsolete) path. The actual image references work, btw. Any ideas?

  2. langsuyar
    Member
    Posted 5 years ago #

    5 day bump. Does anybody have an idea on this? Would be much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic