You’ve shot yourself in the
.
You’ve delete all the uploaded files but Discourse also keeps track of the Uploads in the database.
Since we use the SHA1 of the files to prevent duplicates, when you upload the same exact file, Discourse thinks it already has it.
If you want to fix it, you’ll have to delete all the uploads records. SSH into your server and then
cd /var/discourse
./launcher enter app
rails c
Upload.where("id > 0").destroy_all
Be sure to take a backup before as this is a destructive operation.
FYI: There’s no need to delete uploaded file in Discourse as we’ll automatically delete unused files after a little while.