Fixed stuff in order to support chunk uploads from the webclient