Sets media size and last modified date upon update.