Adding and editing files using the REST framework.