code: function postFile(req, res) {
  		var rest = req.params["0"].substring(1);
  		var diffPatch = req.headers['x-http-method-override'];
  		if (diffPatch === "PATCH") {
  			// This shouldn't happen in collaboration
  			return;
  		}
  		var name = fileUtil.decodeSlug(req.headers.slug) || req.body && req.body.Name;
  		if (!name) {
  			return writeError(400, res, new Error('Missing Slug header or Name property'));
  		}
  		
  		req.user.workspaceDir = workspaceDir;
  		var file = fileUtil.getFile(req, api.join(rest, name));
  		fileUtil.handleFilePOST("/workspace", sharedWorkspaceFileRoot, req, res, file);
  	}
docs: For file create/move/copy.