Added a POST method to save files