Hey,
The image URL is saved in a collection, and not in the Media Manager . Therefore, when deleting a row in a collection, it is removed from the collection and not saved in the Media Manager.
The URL is just a ‘pointer’ and yes indeed when a row is deleted the image url is deleted - I want to confirm that the image itself is deleted, and does not remain in my wix site memory storage.
Hey! As you noticed, in collection we only store URLs to Images. In order to actually delete uploaded image, you’d need to go to Wix Media Manager and delete it from there.
@adas-bradauskas Afas, you cannot do what you suggested IFF user_who_uploads != site admin.
I reported this bug/feature a year ago and it still is not solved. Images do NOT appear in Media Manager, nor in the “Files” option of the Image component in edit mode.
So @dhrh has a valid question, I believe.
This image is not stored in the Media Manager (or more accurately - I can not find it there!)
However, whilst I can use this Page to update/edit records in my Collection in Preview mode it
does NOT update the Collection if I use it in my Published Site. I have checked Permissions -
which are all set to Anyone.
So I appear to have two problems - garbage collection on my uploaded images, and with
wixData.save("Stock’, toSave) only seems to work in Preview Mode.
Help required - this is a major, major issue for me
Interesting, thank-you - a bit of a disaster to say the least!
I don’t understand your comment “IFF user_who_uploads != site admin” - I am the site owner and whilst I can upload images and edit the Collection in Preview mode - I cannot do it in the Published site!
@dhrh You can actually edit live data through Dashboard, there’s a dedicate section “Database”. In it, you can access Media Manager and delete unnecessary images there. But I agree that it’s not ideal for your use case.