add a hook when an asset is uploaded