Add create file call.
Add write file method on server side.