fix getting new upload range. fix file uploading