Adding update functionality to file field