Some minor tweaks to files api server side.