Forums

[resolved] Uploaded image has gets wrong url (6 posts)

  1. amigne
    Member
    Posted 6 years ago #

    Both my wordpress and blog url are set to http://www.domain.com/blog, and the address for uploads is "wp-content/uploads". When I write a new article I can upload an image and preview it. But when I drag and drop the image into the editor area, the image does not appear (only the "broken image" pictogram from my browser). If I look at the html code generated for the article, the img tag contains "http://www.domain.com/wp-content/uploads/2006/03/img-07641.jpg" whereas it should be "http://www.domain.com/blog/wp-content/uploads/2006/03/img-07641.jpg"

    If I add the missing "blog/" the image is correctly displayed. The image is saved to the upload directory, it's just an issue with wordpress not generating the correct url for the picture.

    Can someone help?

  2. Chris_K
    Member
    Posted 6 years ago #

    I don't have a fix, but I've noticed the same thing when using drag and drop with Firefox.

    The work-around, for the moment, is to click on the image (left click) and from the little popup menu choose "Send to Editor".

    If I can login to Trac I hope to write it up as an issue.

  3. amigne
    Member
    Posted 6 years ago #

    Aaaah! Thanks! I confirm that I'm using firefox 1.0.7 on linux/i386 and that the "send to editor" option works.

  4. notbot
    Member
    Posted 6 years ago #

    I am having the same problem and have to change the url by editing the html every time I upload an image. Anyone have an idea how to fix this correctly? In WP 1.5 I could edit upload.php but I don't see one in 2.0. Thanks

    Michael

  5. notbot
    Member
    Posted 6 years ago #

    Still no answer, but people are having the same problem on this thread:

    http://wordpress.org/support/topic/65817?replies=5

  6. netbloke
    Member
    Posted 5 years ago #

    I concur that I have the problem with drag and drop too.

    So is this still an issue? this discussion is quite old.

Topic Closed

This topic has been closed to new replies.

About this Topic