Media/Upload Path outside of WP (5 posts)

  1. chartinael
    Posted 6 years ago #

    Is there a way to change the uploadpath from the default value of wp_content/upload

    to a directory above wp?

    as in file structure is as follows

    /html/blog/with all wp files (relfects domain.tld/blog/)

    I would like to put abload folder in


    ist that possible?

  2. chartinael
    Posted 6 years ago #

    it is not, has no one thought of that?

  3. pro.sec
    Posted 6 years ago #

    Moin moin!

    There is a esay way to solute the problem. Change the presets in the admin section. In german it called...

    Einstellungen -> Verschiedenes:
    'Uploads in folgendem Ordner speichern' [../mediathek]
    'Kompletter Pfad zu den Dateien' [http://www.realtimespacelab.com/mediathek]

    So if you use '/wordpress' as a subdir it will be possible to use '/mediathek' as an Imagefolder.

  4. AlexLakes
    Posted 6 years ago #

    Chartinael, Did you ever figure this out?

    I've tried pro.sec's solution (../img), but WordPress doesn't like that either and in the media gallery shows the url as: http://www.domain.com/wordpress/../img/content/2010/07/test-image.jpg. Apparently it takes the ../ literally!

  5. AlexLakes
    Posted 6 years ago #

    I figured it out. You have to set both and that took a little bit to figure it out. Here's what I did, in case it helps anyone else:

    Settings > Media > Uploads:
    Store uploads in this folder: ../img/
    Full URL path to files: http://www.domain.com/img/

Topic Closed

This topic has been closed to new replies.

About this Topic