Forums

Can't upload anything? Bad install or server problem? (3 posts)

  1. tylermachado
    Member
    Posted 1 year ago #

    I can't upload anything -- images, plugins, content exported from a previous WP site, or new WordPress upgrades -- onto my current WordPress site. I get this error:

    The uploaded file could not be moved to D:\Inetpub\site\preview/wp-content/uploads/2011/02.

    Why does it want to upload everything to this D: drive? I took over this site from a previous owner, so I have no idea how they set it up that it would be uploading to a D: drive instead of our FTP. I tried changing the default media uploads folder but that just changes the part after D:\Inetpub\site\.

    Is this a problem with the WordPress install? Or is there something up with the server? The previous owners of this site weren't very savvy, I don't think, and so some of the errors I've run into remaking the site are really baffling. I can upload images to insert posts via my FTP client, but that's really annoying to have to do every time.

  2. richarduk
    Member
    Posted 1 year ago #

    Try looking here:

    http://codex.wordpress.org/Option_Reference

    Add this snippet to your functions.php and in theory it might change your upload folder (in this case to the 'images' folder in your theme)

    update_option (uploads_use_yearmonth_folders , 0 ); 
    
    update_option (upload_path  , NULL ); 
    
    $path = get_bloginfo('template_directory');
    $path = $path . '/images';
    update_option (upload_url_path , $path );
  3. qpierce
    Member
    Posted 12 months ago #

    If you have checked the box that says "Organize my uploads into month- and year-based folders" via Settings -> Media, then you have to manually create the wp-content/uploads folder, Year folder (e.g. uploads/2011), Month folder (e.g. 2011/05) and set the chmod to 775 to each of these directories.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags