Forums

Image Uploads to Wrong Directory? (29 posts)

  1. jstickley
    Member
    Posted 2 weeks ago #

    Okay, you're probably all going to want to shoot me for asking this question, but I can't seem to get image uploading to work... even in 2.5.1. There's probably a simple fix for this I'm just missing.

    From what I can tell, the files are uploading properly (yes, even using IE7 and Vista)... but instead of going to wp-content/uploads, they're going to wp-admin/wp-content/uploads (which, now that I've dug into things a bit, seems to have been created when I first upgraded to 2.5).

    What have I done incorrectly? I've got the upload folder in settings / miscellaneous set properly (wp-content/uploads). I've tried setting the full path with to no avail.

    Any suggestions?

  2. kylemcintosh
    Member
    Posted 2 weeks ago #

    i'm having the exact issue with one of my installations. None of the fixes seem to help and i can't find any other info on this bug.

  3. jstickley
    Member
    Posted 2 weeks ago #

    Glad to know I'm not alone with this. It's a very frustrating bug.

  4. jstickley
    Member
    Posted 2 weeks ago #

    I hate to bump the thread, but is anyone else having this issue? Is there a fix?

  5. richbrimer
    Member
    Posted 2 weeks ago #

    same here, but only with one of my upgrades to 2.5. One site did fine, while the other has an error when uploading. I even tried upgrading to 2.5.1. I have checked all permissions and 777 is a go. Ideas!?!

  6. tishjennings
    Member
    Posted 2 weeks ago #

    I'm having this trouble too.

  7. DRGDC
    Member
    Posted 1 week ago #

    My images are being uploaded to /htdocs/wp-content instead of /htdocs/wp-content/uploads. This occurred with 2.5.0 and occurs in 2.5.1.

  8. kylemcintosh
    Member
    Posted 1 week ago #

    Anyone had any progress on this?

  9. jstickley
    Member
    Posted 1 week ago #

    I still haven't had any luck correcting this. Looks like it's not a uniform problem across sites with different webhosts, though. My network solutions sites all have the problem, but not those I host through netfirms. I can't see how this would be part of the problem, but maybe that's just my ignorance.

    I tried reinstalling all files for a site (without a completely new database installation), but that didn't seem to help. Makes me wonder if there's a setting in the database that's not right somehow?

    Anyone have thoughts on this?

  10. MichaelH
    Moderator
    Posted 1 week ago #

    Wild guess--check the value of the upload_path in wp_options?

  11. jstickley
    Member
    Posted 1 week ago #

    I just double-checked it... it's set to "wp-content/uploads", as it should be.

    Is this something my .htaccess file could affect?

  12. capples3
    Member
    Posted 1 week ago #

    I'm having a problem as well too. my site does not even display properly and I can't even log into my admin area oshawajazzandbluesfestival.com

    Is your host 1and 1 by any chance??

  13. jstickley
    Member
    Posted 1 week ago #

    capples3...

    Seems you have bigger issues with your site than just image uploads (the topic of this thread).

    I don't mean to sound harsh, but crossposting your issue in an unrelated thread isn't exactly proper forum etiquette.

  14. MichaelH
    Moderator
    Posted 1 week ago #

    I suppose .htaccess could be causing a problem like that--might want to post your contents of that here. If the contents are long/large, put the code at a pastebin and report the link here.

    @capples3--jstickley is correct, you have an issue that should be reported on a separate thread.

  15. jstickley
    Member
    Posted 1 week ago #

    I don't think there's anything out of the ordinary in the .htaccess file, but here it is just in case.

    Options -Indexes
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Any other ideas?

  16. MichaelH
    Moderator
    Posted 1 week ago #

    Anything in the value for upload_url_path in wp_options?

  17. jstickley
    Member
    Posted 1 week ago #

    No, it's blank. Should it contain something?

  18. MichaelH
    Moderator
    Posted 1 week ago #

    The value on my working system is blank.

    You don't have anything weird in the WordPress or Blog address (URL) in Settings->General?

  19. jstickley
    Member
    Posted 1 week ago #

    Nothing weird... just the website URL, which has been the same for over 2 years now.

  20. jstickley
    Member
    Posted 1 week ago #

    I think I'll test a completely new installation and see if I can get it to work with my host. I can't imagine that the host is the issue, but I could rule it out if I can get a clean installation to work.

  21. jstickley
    Member
    Posted 1 week ago #

    Okay, that's REALLY weird. A clean install using 2.5.1 (with no options changed at all from the default installation) is behaving exactly the same.

    Could this be something caused by my webhost?

  22. MichaelH
    Moderator
    Posted 1 week ago #

    Good luck--sorry wasn't able to contribute more to your problem solution.

  23. jstickley
    Member
    Posted 1 week ago #

    I appreciate your help, MichaelH.

  24. MichaelH
    Moderator
    Posted 1 week ago #

    BTW--just checked with a friend who has a Network Solutions domain with WordPress 2.5.1, and uploads are going into wp-content/uploads/2008/xx folders. So uploads folder is in /htdocs/wordpress/wp-content and he accesses blog as www.domain.com/wordpress

  25. jstickley
    Member
    Posted 1 week ago #

    So odds are it's not the webhost, unless there's something different about the server my site is hosted on and the server your friend's is on (an unlikely thing, for sure).

    This is so strange.

  26. capples3
    Member
    Posted 1 week ago #

    jstickley: Thanks for the reminder on post etiqutte I do apolgize for this

  27. jstickley
    Member
    Posted 1 week ago #

    No biggie. It's just better for everyone if threads focus on specific issues.

    Anyone have any other ideas in regard to my original problem of photo uploads working, but sending files to the wrong path (wp-admin/wp-content/uploads rather than wp-content/uploads)? I really just don't understand how a completely clean installation of wordpress using all the default settings can have problems like this. I've tried the no flash photo uploader and the flexible upload plugin as workarounds... all with the same results. Same results with IE7 and Firefox running on either Vista or XP.

    This definitely seems like either a server-side issue or something in the code, but I'm completely out of ideas as to what else to try.

    Any thoughts?

  28. MichaelH
    Moderator
    Posted 1 week ago #

    Just installed WordPress 2.5.1 on a Network Solutions host. Interstingly, wp-content and sub-folders had 'drwxrwsr-w" permissions that I set to 777.

    Then uploaded a photo as part of a post, and published the post successfully. It created the wp-content/uploads folder as well as the 2008 and 05 subfolders and put 3 image files in that folder (wp-content/uploads/2008/05). Also a js_cache folder was created in the uploads folder.

    In wp_options, upload_url_path was blank, upload_path was wp-content/uploads and uploads_use_yearmonth_folders was 1

  29. jstickley
    Member
    Posted 1 week ago #

    I'm still having the same problem. When I try the image upload, it creates the js_cache directory in the correct location, but the wp-content/uploads/2008/05 path is created in wp-admin.

    I've got the same settings in wp_options that you do.

    I don't think the 775 permissions ('drwxrwxr-x') on the folders make a difference; I've tried permissions both ways with the same results.

Reply

You must log in to post.

About this Topic

Tags