Update post of file resource.
Adapt api_library to new calls to syncserver