1.5 strayhorn Bug: url to file after upload (6 posts)

  1. thegreatnorth
    Posted 11 years ago #

    Not a big deal but its just something I've noticed.
    1.5 strayhorn creates a faulty url after uploading an image.
    example = <img src=';http://mysite.com/wp-content/photo.jpg' alt='' />
    inputs extra ; after src=

  2. thitipatn
    Posted 11 years ago #

    I have the same problem. Another problem is that the thumbnail creation function does not seem to work. Also, is there anyway to let the upload function show the thumbnail URL also?

  3. thitipatn
    Posted 11 years ago #

    Open "wp-admin/upload.php" and find this line:

    if ( ereg('image/',$img1_type) )
    $piece_of_code = "<img src=';". get_settings('fileupload_url') ."/$img1_name' alt='$imgdesc' />";

    Just delete the semicolon from <img src=";". and that should correct the image link.

  4. phatdic17
    Posted 11 years ago #

    thanks , that did the trick on the image uploads.
    what about the IE issue? Any suggestions?

  5. artifex03
    Posted 11 years ago #

    I've had another additional problem with uploading images. With image file names having a dash inside (like "photo-2005-02-18.jpg") the dash is removed. Since I prefer to have this kind of naming convention for all of my files, I patched the following line in "wp-admin/upload.php" and added that last dash before "]":

    $img1_name = preg_replace('/[^a-z0-9_.-]/i', '', $img1_name);

  6. James Huff
    Support Team Rep.
    Posted 11 years ago #

    THis has been resolved. Download the new upload.php file linked here: http://mosquito.wordpress.org/view.php?id=888

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.