The philosophy here is based on the idea of Loose Coupling of IPFS to wiki. This can be acheived by using an archive file naming convention, in which we can manually or programatically retrieve the IPFS multihash from the assets filename.
An apparently lost asset can be recovered from ipfs by using get to retrieve it:
ipfs get QmUZDM7....JRnCndVNQesw3 Saving file(s) to QmUZDM7VYg...dVNQesw3 28.65 KB / 28.65 KB [===...====] 100.00% 0s
then renaming it to ipfs_hash.ext. E.g:
mv QmUZDM7VY....QtyJRnCndVNQesw3 ipfs_QmUZDM7VYgF....ndVNQesw3.jpg