Add hook to save meta for attachment