Images didn't upload
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?
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
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'
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