More in this section

Forums / Bugs & Issues / Images didn't upload

Images didn't upload

4 posts, 0 answered
  1. Eric
    Eric avatar
    147 posts
    Registered:
    12 Nov 2007
    20 Jan 2011
    Link to this post
    I tried to upload four images (40 kb each) and got a javascript alert saying the return code was 0.

    When I went to the Images page, there were placeholders there for the images as drafts, but the image didn't show (broken image). It wouldn't let me delete these images. If I tried, it just sat there and spun.

    Looking at the sf_media_content, the four images had a total size of 0.

    I deleted the sf_media_content records out of the database and also the records in sf_mdia_content_sf_permissions where the content_id matched. Are there any other records I should delete?
  2. Vincent
    Vincent avatar
    41 posts
    Registered:
    21 Sep 2007
    21 Jan 2011
    Link to this post
    Eric,

    I have had a similar issue with RC 4.0.1030 (see this post  )

    When upgraded to RTM 4.0.1098, the issue has gone.
    I have not been able to delete the references to previously uploaded images so I am interested to know how to do that.

    Regards
    Vincent

  3. Milena
    Milena avatar
    75 posts
    Registered:
    27 Sep 2017
    25 Jan 2011
    Link to this post
    Hello Eric,

    You can use following query to delete image with title 'myImage' (after modifing the database name):

    DELETE FROM [internalbuilds].dbo.sf_mdia_content_sf_permissions
    WHERE content_id IN
    (
        SELECT content_id
        FROM [internalbuilds].[dbo].[sf_media_content]
        WHERE title_ = 'myImage'
    )
       
    DELETE
    FROM [internalbuilds].[dbo].[sf_media_content]
    WHERE title_ = 'myImage'

    We cannot replicate the issue with the latest build version.

    Kind regards,
    Milena
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Eric
    Eric avatar
    147 posts
    Registered:
    12 Nov 2007
    25 Jan 2011
    Link to this post
    That's pretty much what I did, I just wanted to make sure I didn't leave any orphaned records.

    I was using Chrome to upload the images, which I saw something about there being a bug that's been addressed in the development build.

    Thanks
4 posts, 0 answered