WordPress.org

Support

Support » Requests and Feedback » 1.5 strayhorn Bug: url to file after upload

1.5 strayhorn Bug: url to file after upload

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

    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.

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

    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);

    Moderator James Huff

    @macmanx

    Support Team Rep.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘1.5 strayhorn Bug: url to file after upload’ is closed to new replies.