fix uploading a file larger than maxBytes