Attachment records cleared doing post rebake

Hello,

We have around more than 5 lac attachments in Vbulletin. When we imported these posts into Discourse same no of records were created in the ‘uploads’ table. Recently for some reasons we rebake the posts and all records from ‘uploads’ table removed automatically. I was checking the code and could not find any trace. Is there any flow in code that is deleting data from uploads folder? Thanks

@neil can you please check this? Thanks

Regards,
Junaid

If clean up uploads is enabled, uploads that aren’t linked in posts will be deleted.

4 Likes

Could you please share the configuration setting that i need to change? i checked but could not find the settings. Thanks

Junaid

ok found the configuration. Thanks

Type uploads in the search on settings, it’s the second one.

2 Likes

Thanks Falco, i found that.