• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 );

    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.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can't upload anything? Bad install or server problem?’ is closed to new replies.