add rack request support to receive POST data in controller
add update support for file model and extract save method