• 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)
  • You need to mark some of your threads “Resolved”.

    Thread Starter businessman

    (@businessman)

    No problem – labelled the threads as resolved.

    Any pointers on what to edit to correct the upload path/folder would be great.

    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

    (@businessman)

    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.

    I experience a similar problem. My blog is located at https://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 https://mysite.com/wp-content/uploads….. and not https://mysite.com/blog/wp-content/uploads….. My settings are set properly so I’m assuming it’s a bug.

    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.