Hi!
We have a part, which allows to upload an attachment to a page.
However, when the attachment is removed, the file itself is still available, it is still stored in a JSON of an object and it can opened via direct link and it also appears in a Google search. Is there any ways to remove the file?
When the attachment(as a part) is removed from the page, it does not appear on a frontend of the page and the part is removed from JSON, but the file is still stored in page’s JSON same as it is in an example above.
Sorry if this is still not clear and let me know if you would like me to describe it other way.
I see, this is simply because the attachment input is just a reference to the attachment, which is stored “globally” in the content (look at the raw JSON). I guess we could have deleted the attachment if no more inputs are referencing it. But as you see, it is not done at the moment
Thank you for a reply!
Are you planning to implement this in any future releases? Or, could you, please, give me an advice how to “cleanup” these files on a server?
Hi. A similar problem happened to me today (enonic xp 7.10.3).
An attachment that was no longer in a content was still there (as I could see through the details tab, or in the JSON data through content viewer) despite being removed. And was accessible through it’s link and was being shown in google results.
I was able to remove the attachment from the content by reuploading the attachment in the content and deleting it again.
But the main problem is that, despite the attachment not being in the content anymore, it’s still accessible through it’s link, and I’m afraid that it may still be shown in google results because of that (despite being a deleted attachment).
I wasn’t able to find the content neither in the Content Studio, nor in the Data Tree of Data Toolbox, and searching for the content in the Data Toolbox’s Node Search also was not enough.
Is there any solution for this? I would like to have this attachment deleted but can’t find it.
Thank you.