Title: Images problems WP not root folder
Last modified: August 18, 2016

---

# Images problems WP not root folder

 *  [businessman](https://wordpress.org/support/users/businessman/)
 * (@businessman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/images-problems-wp-not-root-folder/)
 * Just got a slight problem with image uploads in WP 2 – my install is not at the
   root and the images are uploading on a relative path.
 * I’ve had a look at inline-uploading.php, but I’m not quite sure where to edit
   to ensure that when images are uploaded, they use a proper path, rather than 
   relative.
 * Tried looking in the codex, but it simply mentions this will be an issue, but
   I couldn’t find a topic on addressing it.
 * Also – is it possible to ensure that uploaded images are automatically covered
   by a specified div tag?
 * I’m using CSS to position images left, but at present I have to manually edit
   every image posted with the CSS class.
 * Is it possible to edit the WordPress code so that the relevant div tags assigning
   a class will automatically happen at image upload?
 * Many thanks for any replies and help.

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

 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/images-problems-wp-not-root-folder/#post-434732)
 * You need to mark some of your threads “Resolved”.
 *  Thread Starter [businessman](https://wordpress.org/support/users/businessman/)
 * (@businessman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/images-problems-wp-not-root-folder/#post-434782)
 * No problem – labelled the threads as resolved.
 * Any pointers on what to edit to correct the upload path/folder would be great.
 *  [yosemite](https://wordpress.org/support/users/yosemite/)
 * (@yosemite)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/images-problems-wp-not-root-folder/#post-434798)
 * Thanks.
 * The built-in uploader bases the path off of your settings in Options:General.
   Do your settings reflect the accurate path in “WordPress address (URI):” and 
   in Options:Misc “Store uploads in this folder:”? (You shouldn’t have to edit 
   any core files, btw).
 * I may be pretty rusty on the built-in as I gave up some time ago and installed
   ImageManager
 *  Thread Starter [businessman](https://wordpress.org/support/users/businessman/)
 * (@businessman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/images-problems-wp-not-root-folder/#post-434960)
 * That’s the problem – General > Options is right, and the uploads *are* going 
   to the right folder. The trouble is that they won’t display.
 * Could be because I’m using the WYSIWYG editor for uploads and that this isn’t
   able to cope with installs in anything other than the root of a domain.
 * With WYSIWYG off I get the right path – but then I’ve got to manually insert 
   the HTML code, and as I’d like to open up submissions for users who’ll find even
   HTML intimidating, I’m keen to make it as easy for them as possible.
 * So I guess this seems to be an issue specific to the WYSIWYG editor – in which
   case, any ideas what I need to edit so that the WYSIWYG editor can cope with 
   uploads when installed anywhere other than the root folder?
 * EDIT: Just tried adding this to the config file:
    define(‘UPLOADS’, ‘ezine/wp-
   content’);
 * No luck, though.
 *  [jokerr](https://wordpress.org/support/users/jokerr/)
 * (@jokerr)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/images-problems-wp-not-root-folder/#post-435308)
 * I experience a similar problem. My blog is located at [http://mysite.com/blog](http://mysite.com/blog).
   When I upload the images it goes to the correct location however when I drag 
   and drop the image into the post the link is [http://mysite.com/wp-content/uploads&#8230](http://mysite.com/wp-content/uploads&#8230);..
   and not [http://mysite.com/blog/wp-content/uploads&#8230](http://mysite.com/blog/wp-content/uploads&#8230);..
   My settings are set properly so I’m assuming it’s a bug.
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/images-problems-wp-not-root-folder/#post-435309)
 * Jokerr – it is a bug with drag’n’drop when using Firefox. Instead of dragging
   and dropping, click the photo and, from the resulting menu, click on “Send to
   Editor”.

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

The topic ‘Images problems WP not root folder’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [Chris_K](https://wordpress.org/support/users/handysolo/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/images-problems-wp-not-root-folder/#post-435309)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
