move file logic in ``FileStorage`` behavior.