WordPress.org

Ready to get started?Download WordPress

Forums

Change path for file upload on multysite WP (4 posts)

  1. permnews
    Member
    Posted 2 years ago #

    I use WP in multisite mode, via a plugin Enable Multi-Site

    Problem: for sites in subdomains plugin creates a folder for files (pics)automatically - wp-content/blogs.dir/<subdomain site number>/files. However, all subdomain-sites uses the theme, which takes (thumbnails etc) from its /image folder. I need change the path to wp-content/themes/ <used theme> /images

    But using standard WP ways it is impossible.

    I tried to change it simply by changing the links in the database, but it has not gives any effect.
    Is there an effective way to customise an upload path?
    Thanks!

  2. I need change the path to wp-content/themes/ <used theme> /images

    ... What on earth... Why would you ever need to do that!?

    However, all subdomain-sites uses the theme, which takes (thumbnails etc) from its /image folder.

    That is a shitty theme. You should NEVER ever be storing your site CONTENT in a theme folder like that! You'd lose everything when you upgrade!

  3. permnews
    Member
    Posted 2 years ago #

    I have several years of working with sone sites using this theme, and it suits me. More than once I upgrade my sites, there were no problems and are not planned )))) . As I understand it, I upgraded CMS, not themes, and I do not understand why I should lose it.
    My question was about how change the path to wp-content/themes... other matters are not important today

  4. Not upgrading your site, upgrading your THEME. It's just ... No. You're doing it wrong. The theme is doing it wrong. And the 'why' of your questions always matter.

    If the issue is a theme being daft, and believe me, it is, the solution is not 'change WordPress' but to be smarter than the theme.

    1) Fix the theme so it uses /files/ instead. WordPress will handle the rest.

    2) Trick the theme with a .htaccess to redirect /wp-content/themes/ <used theme> /images/ to /files/ instead.

    3) Get a better theme.

    Don't try to move the uploads directory (protip - It's in Network Settings > Sites, edit the site, go to options). You will have to change it for every single site on your network, and every time you make a new site, you have to change it. AND it cause cause problems with other plugins, all of which expect the images to be in blogs.dir. You will hobble your ability to grow as a site, and your compatibility with WordPress later on.

    It's a really, really, phenomenally bad idea. You're on your own if you want to do it the wrong way.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags