WordPress.org

Ready to get started?Download WordPress

Forums

Uploads directory. (6 posts)

  1. dg77
    Member
    Posted 8 years ago #

    Is there a way to change the upload directory so that it points to a directory at a higher level than the wordpress install?

    I tried ../directory_name/sub_directory, but that just appends "../directory_name/sub_directory" onto the existing wordpress path.

  2. Kalli
    Member
    Posted 7 years ago #

    Same here. I have my blog at mysite.net/wordpress and would like to have my images/uploads at mysite.net/globalimagedirectory

    Is there any way of doing this?

    The reason I want to do this is because I used a one-click install my hosting service offers to install WordPress. With it follows a warning that when upgrading, all files in the directory will be deleted. With images in a different folder it will make my upgrading a zinch.

  3. lelion
    Member
    Posted 7 years ago #

    I'd like the answer to that question, too.

    I used in WP 2.05:
    ../directory_for_uploads

    ...after upgrading to WP 2.1x and 2.2x, this doesn't work anymore, so now if I make the option ../directory_for_uploads, then what I see in the urls becomes something ugly like:

    http://www.mydomain.com/../directory_for_uploads

    Why did the model change after 2.1?

    How do we specify now a HIGHER-level dir for uploads?

    I tried everything, absolute paths starting with http://www.mydomain.com, server paths like "/home/myusername/", I tried everything, nothing works, I can't simply make the path to be one level higher than the wordpress dir :(((

    Reason I'd like this to work is that I run 2 blogs on one domain, and I want all uploads to be in the main dir, like:

    http://www.mydomain.com/wordpress-uploads/

    and not in
    http://www.mydomain.com/blog1/wp-uploads/
    and http://www.mydomain.com/blog2/wp-uploads/

    ...or something of the sort...

    Thx for any help!

    PS I can hack the WP files, but it'll mean for me more difficult upgrades all the time, so a better solution is what I search for :)
    Otherwise... I guess, we'll have to post a bug ticket somewhere?

  4. lelion
    Member
    Posted 7 years ago #

    Anyone, some help on that, or... it's hardcoded and now in WP 2.1.x and 2.2.x and above, we can't anymore declare an directory for uploads which is ABOVE the wordpress dir?

    Is my only chance to file a ticket in the trac, or there's some workaround?...

    I am sure that a lot of people use upload directories which are outside the WP install, so what do we do...?

    In 2.0.5 ../ (in options -> misc -> uploading)
    meant:

    "Go one dir higher" so ../my-uploads/ correctly stored uploads in: http://www.server.com/my-uploads/ ...

    Now, since 2.1.x and higher, ../my-uploads/ still uploads everything in the correct dir on the server, but produces invalid URLs like:
    www.server.com/../my-uploads/ ...it's even strange that they work...

    Thx for any advice on that:)

  5. lelion
    Member
    Posted 7 years ago #

    Anyone, any advice on that...? Please? :)

  6. lelion
    Member
    Posted 7 years ago #

    ? :-(

Topic Closed

This topic has been closed to new replies.

About this Topic